Hello all,
I am nearing the end my game development (thanks for all the help). Please think of any tips for this scenario:
My game is grid-based, with a d-pad, and gravity goes downward (not physics-based). As you play, you might go right 1 space (off a ledge) and fall 2 spaces. As you fall and the grid updates, I make my d-pad go gray until you land, at which point the d-pad lights up again (only in the directions that you can go though, which is cool).
I made a cool optional feature, when turned on, stops the character at edges instead of falling off. This eliminates the need for a “back-1” button. But if it’s turned off, I’d like to be able to allow the player to fall off the ledge and then when he lands, keep going without having to press again. Currently though once you land, you have to repress the direction button.
Because of all the grid updating that my game involves (especially for checking all the things that might need to fall) I don’t think I can just keep the “go right” function loop going in any way. I think the best I can do is if there is some way to configure an event listener to know that when I re-insert the go right button (or make it hitTestable, since it’s an invisible circle under a dummy image), I am still holding down in that spot and want to immediately fire the go right function again.
Any thoughts?
Otherwise there is not much benefit to having the edge-stop feature turned off. I can provide more details if it will help.
Thanks,
dF [import]uid: 117490 topic_id: 24402 reply_id: 324402[/import]