How do I make the player randomly teleport between doors?

Get help using Construct 2

Post » Tue Feb 03, 2015 8:15 am

That's fantastic, unnatural20, exactly what I was looking for. It seems that the task was quite complex, considering the events' logic. It took me a while to understand it completely and I'm still confused about the sub events... but it makes sense. I also tried to nest or "de-nest" the sub events but it only worked correctly the way you nested them.

Thanks again =)

Oh, codah's edition is a bit cleaner but it's harder to understand for me. Seems like I need to learn a lot about picking :mrgreen:
B
33
S
9
G
1
Posts: 156
Reputation: 3,024

Post » Tue Feb 03, 2015 10:49 am

codah wrote:This will avoid the entered door, slight mod to yours hope you don't mind


Absolutely not, this teaches me more about Picking!

@notnsane Picking, inside of a single event, happens from the top down.
So in codah's capx,
First, all doors are picked;
Then, doors where the UID < > (does not equal) the UID stored in Mans are picked (out of all);
Last, one random door of the remaining set is picked, and the Mans is moved to that door.

However, unlike in my .capx, this only occurs when the down key is pressed and Mans is overlapping a door. v. efficient.
B
11
S
4
Posts: 152
Reputation: 1,236

Previous

Return to How do I....?

Who is online

Users browsing this forum: NN81, plinkie, TsubaRu and 9 guests