DPS2004 wrote:
i can't do it
when gf clicked forever if <key [space v] pressed?> wait until <not <key [space v] pressed?>> shooting script here
Offline
jontmy00 wrote:
DPS2004 wrote:
i can't do it
when gf clicked forever if <key [space v] pressed?> wait until <not <key [space v] pressed?>> shooting script here
That script would have to be on the projectile.
Shooting script:
goto [SpaceShip v] point in direction ([direction v] of [SpaceShip v]) repeat until <<touching [Target v]?> or <touching [edge v]?>> move [Projectile Speed] steps
Offline
I have a shooting game that is like that. Check out my profile and go to Zombie Defense or Two-player Shooter.
Offline
You can use code from my game, it has shooting spaceships
My game with spaceships
Offline
This might help. Make the spaceship, and the object that you want to shoot two separate sprites.
when gf clicked go to (spaceship) repeat until <touching edge> change y by (10) end
Offline
lhlien wrote:
This might help. Make the spaceship, and the object that you want to shoot two separate sprites.
when gf clicked go to (spaceship) repeat until <touching edge> change y by (10) end
Oopss.... The spaceship is a sprite and the touching edge is did wrong. You'll understand.
Offline
bullelk12 wrote:
when gf clicked forever if <key [space v] pressed?> show go to [SpaceShip v] point towards [mouse-pointer v] repeat until (touching [edge v]?) move [ProjectileSpeed] steps end hide end
It would look better if the spaceship were facing the same way... I improved it as well as fixing it.
lhlien wrote:
This might help. Make the spaceship, and the object that you want to shoot two separate sprites.
when gf clicked go to (spaceship) repeat until <touching [edge v]?> change y by (10) end
Fixed
Last edited by Splodgey (2012-07-14 02:48:30)
Offline
could people please look at some of my stuff not many people are
Offline
Gamingrulez wrote:
could people please look at some of my stuff not many people are
If you want people to view your projects, post a thread in the show and tell section to advertise it.
Last edited by Splodgey (2012-07-14 07:01:26)
Offline
Splodgey wrote:
bullelk12 wrote:
when gf clicked forever if <key [space v] pressed?> show go to [SpaceShip v] point towards [mouse-pointer v] repeat until (touching [edge v]?) move [ProjectileSpeed] steps end hide endIt would look better if the spaceship were facing the same way... I improved it as well as fixing it.
lhlien wrote:
This might help. Make the spaceship, and the object that you want to shoot two separate sprites.
when gf clicked go to [spaceship v]// [spaceship v], not (spaceship) repeat until <touching [edge v]?> change y by (10) endFixed
Fixed again.
Offline