wilmer
Member
Hi :
Look, I don't remember what game I have seen this in, what happens is that I need a kind of smart bar like in the gif that I attached here; The bar has a "piece" that goes from one side to the other and if the "piece" touches at least one pixel of the purple square in the center, it will execute the code that I want to put on it. It is for a fighting game and if my enemy knocks me down, my character will be knocked out and this bar will appear so that when pressing a key the "piece" will stop at that moment.
Maybe I can do it but with simple functions like "place_meeting". I would like to know if you have a cleaner code idea and if you know what this type of bar is called, I would appreciate it.
Look, I don't remember what game I have seen this in, what happens is that I need a kind of smart bar like in the gif that I attached here; The bar has a "piece" that goes from one side to the other and if the "piece" touches at least one pixel of the purple square in the center, it will execute the code that I want to put on it. It is for a fighting game and if my enemy knocks me down, my character will be knocked out and this bar will appear so that when pressing a key the "piece" will stop at that moment.
Maybe I can do it but with simple functions like "place_meeting". I would like to know if you have a cleaner code idea and if you know what this type of bar is called, I would appreciate it.