How do I animation when desired object reached

Get help using Construct 2

Post » Sat Oct 31, 2015 10:55 am

Hi im planing a game right now and its going to be similar to dark souls but pixelated 2d and i want to know what are my options.Is it possible to make my player do animation on pressed button only when is near specific object like in Dark souls when the player is near the bone fire he does the hand animation and lights it?
B
3
Posts: 1
Reputation: 177

Post » Sat Oct 31, 2015 3:05 pm

Yes
B
17
S
7
Posts: 280
Reputation: 2,522

Post » Sat Oct 31, 2015 9:38 pm

You could do a System: distance(player.X,player.Y,firepit.X,firepit.Y) <= 10 (your distance) then do animation and other actions.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701


Return to How do I....?

Who is online

Users browsing this forum: androidpro, Christmas, dop2000 and 21 guests