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?
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.
Posts: 1,762
Reputation: 18,314

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests