How do I make a projectile fire from my sprite?

id: 749438

category: Help with Scripts

posts: 3

dampag9 dampag9 loading
I'm trying to make a game but I can't figure out how to make a projectile shoot without the projectile following the inputs of the sprite.
In the sprite for the projectile, have this script:

when I start as a clone
go to (player v)
point in direction ([direction v] of [player v])
repeat until <whatever makes the projectile get deleted>
move [whatever] steps
end
delete this clone
To add on to the above comment you will have to associate a key with the attack.