Short-Range projectiles

Get help using Construct 2

Post » Fri Jun 01, 2012 6:11 pm

Hello again,

I think I am having trouble with the expressions because I can't seem to get this right. I want to make an enemy shoot a projectile, but I want it to explode or have some other effect after it travels, say, 1000 pixles. Further, I only want the enemy to fire these projectiles if they are within 800 or so pixles (or closer) of the player.

Thanks for any suggestions!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Fri Jun 01, 2012 6:31 pm

Something like this? I used 300 and 200 for distances here, but you get the point.

Dropbox Link: DistanceFire.capx
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Jun 01, 2012 6:38 pm

This looks pretty much perfect. Thank you very much for the demo :) I appreciate it!
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Fri Jun 01, 2012 6:41 pm

No problem
By the way, I changed the order of the events a bit to make it more reliable, updated the .capx in previous post.Nimtrix2012-06-01 18:55:32
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Jun 01, 2012 9:46 pm

Fun example Nimtrix.
B
28
S
8
G
8
Posts: 530
Reputation: 7,154


Return to How do I....?

Who is online

Users browsing this forum: GSquadron, jeffige, MarkThomas, MisterAqua, Nifl, paala and 23 guests