to the next level, without the use of new event

Discussion and feedback on Construct 2

Post » Mon Dec 03, 2012 2:11 pm

To the next level, without the use of new event sheets. How?
B
1
Posts: 5
Reputation: 410

Post » Mon Dec 03, 2012 2:41 pm

Attach the same event sheet to another layout.
Check my tutorial Asteroid in less than 100 events to see this process (and many others) described.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Dec 03, 2012 3:22 pm

[QUOTE=Kyatric] Attach the same event sheet to another layout.
Check my tutorial http://www.scirra.com/tutorials/358/asteroid-clone-in-less-than-100-events to see this process (and many others) described.[/QUOTE]

nothing useful found. I need to make the transition to the next level, but use only one event sheets.
B
1
Posts: 5
Reputation: 410

Post » Mon Dec 03, 2012 4:06 pm

Not sure what you mean. Are you asking how to make each level use the same event sheet? Or just how to include a general purpose event sheet into another one so you don't have to duplicate events? Or something else?
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Mon Dec 03, 2012 4:15 pm

[QUOTE=TL22] Not sure what you mean. Are you asking how to make each level use the same event sheet? Or just how to include a general purpose event sheet into another one so you don't have to duplicate events? Or something else?[/QUOTE]

how to make the transition to the next level when all the levels have on same event sheetsamigoj2012-12-03 17:30:54
B
1
Posts: 5
Reputation: 410

Post » Mon Dec 03, 2012 7:42 pm

If you want to make a transition, you have to code that. It can be as simple as using a Go to Layout event, or manually destroying and spawning everything.

If all the levels have the same event sheet, then you either need to store the different level in the layout, (by placing the sprites on the layout, if your level is small enough) or put in code to detect which level it's on and spawn the right level via events. (You don't even need separate events for this method, it can all be contained to one layout if desired. Just destroy old and spawn new.)
B
19
S
5
G
1
Posts: 104
Reputation: 2,920

Post » Tue Dec 04, 2012 12:39 am

@amigoj

i'm not sure what you want exactly. but this might be a method of getting to what you want. @valdarko explained this to me about his level transitions...

http://www.scirra.com/forum/your-c2-tests_topic41840_page34.html
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Tue Dec 04, 2012 8:48 am

[QUOTE=harrio] @amigoj

i'm not sure what you want exactly. but this might be a method of getting to what you want. @valdarko explained this to me about his level transitions...

http://www.scirra.com/forum/your-c2-tests_topic41840_page34.html[/QUOTE]

very good example. is it possible to download the source code of the game?
B
1
Posts: 5
Reputation: 410

Post » Tue Dec 04, 2012 3:58 pm

create a global variable called levelno.
every time level is comdd 1 to levelno.
go to layout by name 'level&levelno.' >
it works in theory but i do not have access to C2 now and for a considerable amount of time.
B
20
S
8
G
2
Posts: 122
Reputation: 3,202

Post » Tue Dec 04, 2012 11:11 pm

[QUOTE=amigoj] [QUOTE=harrio] @amigoj

i'm not sure what you want exactly. but this might be a method of getting to what you want. @valdarko explained this to me about his level transitions...

http://www.scirra.com/forum/your-c2-tests_topic41840_page34.html[/QUOTE]

very good example. is it possible to download the source code of the game? [/QUOTE]

i pretty much understand what he did from his example, but you can ask @valdarko if he can make an example capx for you.
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Next

Return to Construct 2 General

Who is online

Users browsing this forum: 99Instances2Go and 16 guests