I'm trying to make a game where my character moves around. How do I make it so when the character has moved in a certain direction? Eg: If the character moves right and stops, the bullet will still fire right, as well as while it's moving.
Offline
You should make a several sprite for the bullet, so the bullet can't be influenced by the characters movements. Just hide the bullet, and as soon as you shoot (by using space or so) make it go to the avatar and move in the direction the avatar is headed (you can work with the direction by using the "--- of Object" block under sensing)
Offline
But there may be more than one enemy in the level at one time
Offline
Use multiple bullets, I suppose. (and multiple variables, if required) Also, I'm pretty sure this belongs in All About Scratch.
Offline
xAIRGUITARISTx wrote:
I'm trying to make a game where my character moves around. How do I make it so when the character has moved in a certain direction? Eg: If the character moves right and stops, the bullet will still fire right, as well as while it's moving.
yea, thats about it (hold on, making shooting demo to use for u)
Offline
OK, I made it here
I uploaded it with my test account
happy Machine gun platformer making
Last edited by flashgocrazy (2011-12-10 21:28:45)
Offline
It's a platformer
Offline