How to make a bullet follower ?

Get help using Construct 2

Post » Sat Jan 19, 2013 12:15 am

Hy :)
I'm trying to create a bullet fired by the player's character and following the enemy, is it possible? How can i do this?!

Tnks!
B
21
S
4
G
2
Posts: 96
Reputation: 2,392

Post » Sat Jan 19, 2013 12:32 am

Every Tick
-Bullet
--angle to enemy's position (i don't remember about angle expresion)
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sat Jan 19, 2013 1:14 am

did not work =/

Events...


HTML...
http://hugoluigi.com/bulletfollower/

Capx...
http://hugoluigi.com/bulletfollower/bulletfollower.capx
B
21
S
4
G
2
Posts: 96
Reputation: 2,392

Post » Sat Jan 19, 2013 1:19 am

Set Bullet angle of motion to angle(bulletFollower.X, bulletFollower.Y, target.X, target.Y)Kyatric2013-01-19 01:21:03
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat Jan 19, 2013 1:39 am

My god, man, it worked.

http://hugoluigi.com/bulletfollower2/

Thank you :)
B
21
S
4
G
2
Posts: 96
Reputation: 2,392


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter and 23 guests