The logic behind bullet behavior

Chat about anything not covered in these forums, but keep it civil!

Post » Sat Feb 20, 2016 4:01 pm

I have created a game in Construct 2 that used the bullet behavior. Now I'm using another engine (Unity) and I'm making a sequel of the game. Since there is no bullet behavior in Unity, I don't know how to make my own version of the bullet of C2 bullet in Unity. Can anyone tell me what is the logic of the bullet behavior in c2 , how it works so I can implement it in my new game?
ImageImageImageImageImage
B
54
S
15
G
5
Posts: 852
Reputation: 11,346

Post » Sat Feb 20, 2016 6:35 pm

every tick
--- set x to self.x+speed*cos(angleOfMotion)*dt
--- set y to self.y+speed*sin(angleOfMotion)*dt
B
91
S
31
G
103
Posts: 5,238
Reputation: 67,762


Return to Open Topic

Who is online

Users browsing this forum: No registered users and 2 guests