PixelMonado wrote:I just started working on a game, and I want to make a script where if you hold down w, it'll activate a jetpack, but it you just press it once it'll jump like normal and not consume any fuel. but it would need it to keep doing that, and that needs the timer to keep going up to 1 until you stop pressing “w”.That you said is untrue since it is an isolated script out of others loops. The link is on my profile when green flag clicked forever if then wait (0.05) secs //Makes sure the key is held and not pressed if then Start flying::custom else jump::custom end end end See, the problem with these is that I need to do it without “wait” blocks because it stops everything the sprite is doing, and therefore it would stop moving until you took your finger off “w” what i've been trying to do is reset the timer then time the length of the keypress, and then activate the jetpack. but it would need it to keep doing that, and that needs the timer to keep going up to 1 until you stop pressing “w”. Empty-Map wrote: when green flag clicked forever wait until fly wait until > end try that
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |