I would like to make a simple race game that forces the user to tap the screen (this is for touch) to make the sprite move to the right horizontally. This is why I assumed bullets would be the way to go. The tapping would be what controlled the speed the sprite. The user doesn't control where the sprite goes, just how fast.
Anyone have a fairly simple solution? I'm having trouble wrapping my head around it for some reason.
Something like this?
te decelerate the bullet when player doesn't touch the screen:
every x seconds subtract a number from the bullet speed
Tapping on the screen adds to the bullet velocity:
on tap add a certain number to the bullet speed
I must be being an absolute putz here because I just kinda get a bouncing bullet. I've tried it with different numbers. I've been messing with it but kinda end up with the same thing. I took a screen cap.
and this
you are setting the speed instead of increasing and decreasing it.
Try this:
sprite set bullet speed to Sprite.Bullet.Speed+25
sprite set bullet speed to Sprite.Bullet.Speed-20
Develop games in your browser. Powerful, performant & highly capable.
Ahh! Now I gotcha. Now the horse flips direction and turns around and runs back the other way if you don't keep clicking and that works for me. I can kick them to a "disqualified screen" based on the horses direction. So I this works great. I kinda see what I need to learn more about now. Thanks to much Little. I really appreciate your help.