Pick object with property

For questions about using Classic.

Post » Tue Dec 25, 2012 11:33 am

I have set up a ladder climbing system for the platform behaviour, which basically switches to 2-directional (up/down) movement whenever you trigger ladder climbing. Which objects you can climb are determined by a custom "Climbable" attribute.

I want to snap the player object to the center of the ladder, but I cannot seem to find any way to pick the ladder object I'm interacting with so that I can retrieve its X value. Is there no way to do this in Construct?
B
4
Posts: 14
Reputation: 328

Post » Tue Dec 25, 2012 9:03 pm

Check if the player and the ladder are overlapping eachother, that will pick the right instance of the ladder.
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Wed Dec 26, 2012 12:36 pm

It seems like there is no way to pick an object based on its attributes rather than object type, but I guess it's not a problem -- I can just use a specific object that can be climbed and make it invisible, while having a tiled background object on top for graphics.
B
4
Posts: 14
Reputation: 328


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests