How do I Make it so when player go to other layout, spawn...

Get help using Construct 2

Post » Tue Sep 29, 2015 12:46 am

How do I Make it so when player goes back to a layout he went before, he spawns somewhere else?
B
5
Posts: 12
Reputation: 251

Post » Tue Sep 29, 2015 1:09 am

You want random spawn?

Can do it easily with a global variable, call it EntryPoint = 0

The default is 0.

Then on your layout, you have a check at Start of Layout.

EntryPoint = 0 => Spawn somewhere
EntryPoint = 1 => Spawn somewhere

and repeat for as many spawn points as you need.

So when you move to return to a prior layout, set the EntryPoint what you need. If you want it to be random, then set it to int(random(0,10)) or however many points you have.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614


Return to How do I....?

Who is online

Users browsing this forum: dop2000, MassimoF and 26 guests