Bullets

Discuss game development design and post your game ideas

Post » Sat Dec 13, 2014 8:06 pm

I have spaceships moving downward. I would like them to fire missiles in the same direction (down). How can I do this?
B
3
Posts: 1
Reputation: 177

Post » Sun Dec 14, 2014 2:44 am

set their angle the same as the ships when you create them
B
10
S
3
Posts: 46
Reputation: 820

Post » Wed Dec 17, 2014 1:25 pm

on spawn bullet set angle 90. set speed xx (how much pixels you want per sec).
or if you're crazy like me - set imagepoint on each frame (depending how much frames you got) on tip of your ship, spawn bullet there and set angle atan(originpoin (y) - imagepoint2 (y) / originpoint (x) - imagepoint2 (x))
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests