I have recently started making a game where two planes battle, i have got the health bar and everything ready but I just need some help on making them shoot. If anyone has an idea please help.
Offline
Check out my airhogs game Here
Its a plane game (can use my sprite if you want) and has shooting
Hope is helped
Last edited by Tbtemplex97 (2012-12-31 15:25:08)
Offline
You can ask this question at script workshop .
Offline
There are lots of possible ways to make weapons fire, it really depends if you want something to fire a lot of bullets/objects at once, or just one. If it's just one, do what the first suggestion said, if it's more than one, I can upload a project with a method for doing that
Offline
I think I can help you...
Plane being controled:
when gf clicked forever wait until <key [space*] pressed?> play sound [Shoot] set [P1Shoot/P2Shoot***] to [1] broadcast [P1shoot/P2shoot***] wait [1*] secsBullet:
when i receive [P1shoot/P2shoot***] show point towards [P1/P2***] repeat until <<touching [P2/P1***] ?> or <touching [edge]?>> move [10*] steps end set [P1shoot/P2shoot***] to [0] when gf clicked forever if <(Shooting) = [0]> go to [P1/P2***] hideEnemy plane:
when gf clicked forever wait until <touching [P1bullet/P2bullet***] ?> play sound [hit] change [P2health/P1health***] by [-1*] wait [0.1**] secs*Those are values that you can change if you want.
Offline