Moving into new areas...

For questions about using Classic.

Post » Sat Sep 12, 2009 1:11 pm

I just need to know the code in order to pass into different layouts via hitting an object.

Thanks in advance!
Posts: 16
Reputation: 882

Post » Sat Sep 12, 2009 3:45 pm

If you install version 0.99.5 I show how to move back and forth between layouts in Part 4 of the adventure tutorial in the tutorial section.[url:2t8eofp2][/url:2t8eofp2] There are other ways to do it as well, but you could straight copy the code from the tutorial and it would work for you. The steps (shown in the tutorial);

1. Place your main guy via an event in the first layout.
2. Physically put an object (door, etc) in the first layout.
3. Add an event when your guy touches the door, move to layout 2
4. In layout 2, set position of guy to an object (or just x,y coordinates) in the second layout. Do not re-create him.

The actual code/events for this are in the part 4 tutorial.
Posts: 835
Reputation: 5,313

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests