How to check what is the last object collsiion?

Get help using Construct 2

Post » Thu Jan 16, 2014 8:09 am

If I want to check the last object that collided player is the same object before.

How can I do?
B
3
Posts: 2
Reputation: 179

Post » Thu Jan 16, 2014 9:52 am

I do not know for what purpose will be used, then it will be hard to tell you something that is fully tapped.

I might put a boolean type variable in the objects I want to identify the collision and after the player colliding with these objects would change their variable from false to true.

this will always give you a way to know who already collided with the player or not
Open for Commission, contact email > [email protected]



my personal website with news in my game developer adventure! |

adult ( 18) pixel art games
B
135
S
24
G
21
Posts: 513
Reputation: 24,961

Post » Thu Jan 16, 2014 9:59 am

If you want to know if it is the same object as the last collision (as opposed to just if it has collided before) On collision store the name or UID of the object in a variable, then on the next collision check the variable and see if it matches.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests