Triggering multiple door instances

For questions about using Classic.

Post » Sat Jan 28, 2012 7:24 am

Hello! I'm trying to set up a system whereby I can trigger doors to open when a character overlaps a corresponding plate on the ground. I've managed to set up a working version using private variables on the door and trigger sprites, but I'm wondering if there is a more elegant way to do this. I fear that if I wish to add many doors it may get messy. If any construct veterans would care to take a little look at my .cap and maybe give me some tips on how I could improve this functionality I would really appreciate it :)

Cap here!
B
46
S
16
G
3
Posts: 132
Reputation: 4,953

Post » Sat Jan 28, 2012 10:25 am

Hi,

click on the door, search for "groups" in the properties, then "container", add object -> trigger. In that way, each trigger is related to each door. Can't explain it better (english isn't my motherlanguage).
You don't need anymore any variable for that action.

example: http://dl.dropbox.com/u/26932498/doors.capzyblade2012-01-28 10:29:24
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Sat Jan 28, 2012 3:26 pm

Thank you, that is much better!
B
46
S
16
G
3
Posts: 132
Reputation: 4,953


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest