New layout/Same Objects

For questions about using Classic.

Post » Wed Oct 08, 2008 8:30 pm

Hey,

Say you want to make a game with several different levels which incorporate the same objects and mechanisms. You know; different levels, but the levels have the same components. How can you easily do this in Construct without having to have X amount of copies of each object (X being the number of levels)?

Thanks.
B
2
G
4
Posts: 10
Reputation: 1,070

Post » Wed Oct 08, 2008 8:42 pm

Code all your events on one event sheet. Then, any later layouts can simply have an 'event sheet include' (right click, include event sheet in event sheet editor) to include the game events. This saves you copy/pasting events. Also, if you right click an existing layout and select 'Clone layout', it'll duplicate all the objects. You could then rearrange the objects to design a new level. (Cloned layouts have no events, it's intended that you include the original events)
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Wed Oct 08, 2008 8:57 pm

Thanks, that'll help.

One more thing. I'm using 8Direction to control the movement of a ball. However, when I set it to "bounce" when hitting another certain object, it just stops when hitting the object instead of actually bouncing. How can I get this effect?
B
2
G
4
Posts: 10
Reputation: 1,070

Post » Wed Oct 08, 2008 9:46 pm

Make the object solid and the 8 direction movement handles collisions automatically (you won't need any events).
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Thu Oct 09, 2008 1:38 am

But it still doesn't bounce in this situation. If two objects collide, there is no bouncing.
B
2
G
4
Posts: 10
Reputation: 1,070


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests