You have two actors. One being your main actor, the other is the projectile. In this example I assume you can move right and left. I am also assuming you have a directional variable for you actor. This variablel is -1 when you press left, 1 when you press right. If you need this explained just ask.
Create a keydown event for the key space, set repeat to disable
Select the event create actor
Upon the creation of the projectile, the projectiles event
Set its velocity according to the main actors direction.
Create Actor->Script Editor
- Code: Select all
xvelocity=direction*5;
I could make a demo of this if you like.