Hmm... That is a rather complex thing, but i have an idea:
Put this in the bullet sprite:
when i receive [Game Start v] go to x: < [x position v] of [player v] > y: (< [y position v] of [player v] > - [However much you need] ) hideOkay, so now it's going to the player, and if you adjust the y right, to the player's gun.
when i receive [Game Start v] forever point in direction < [direction v] of [player v] > endSo that means which ever way your player is facing, the bullet will face. NOTE: This also means that you need to have the player point in the direction he's moving in.
when i receive [Game Start v] forever if <key [space v] pressed?> if < not <(shooting?) = [yes]> > set [shooting? v] to [yes] show repeat (100) move (20) steps if <touching? [edge v]> hide end if <touching? [enemy v]> hide end end go to x: < [x position v] of [player v] > y: (< [y position v] of [player v] > - [what ever you need] ) set [shooting? v] to [no] end endyou need to create a variable called "Shooting?" to make this work, and put a script like this:
when gf clicked set [shooting? v] to [no]There is another way to do this, if this one doesn't work for you.
Last edited by CAA14 (2013-03-08 15:48:50)
Offline