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
23
S
4
G
2
Posts: 96
Reputation: 2,442

Post » Sat Jan 19, 2013 12:32 am

Every Tick
-Bullet
--angle to enemy's position (i don't remember about angle expresion)
B
91
S
31
G
29
Posts: 3,129
Reputation: 27,789

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
23
S
4
G
2
Posts: 96
Reputation: 2,442

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
268
S
96
G
67
Posts: 7,217
Reputation: 73,725

Post » Sat Jan 19, 2013 1:39 am

My god, man, it worked.

http://hugoluigi.com/bulletfollower2/

Thank you :)
B
23
S
4
G
2
Posts: 96
Reputation: 2,442


Return to How do I....?

Who is online

Users browsing this forum: Lanhoj and 8 guests