Well, I am trying to make a portal platformer, but I can't figure out this one thing: Well, I have my person, with it's movement script, and the portals and a way to put them out, but I can't figure out a way to make the person go from one to the other portal, without getting stuck in an endless loop. See, if you go like:
when gf clicked forever wait until < (touching) > [blue] > go to [orange v] endActually the touching thing is the touching sensing block with the sprite "Blue" as in blue portal there. but I couldn't get that... Orange is the orange portal. But anyways, if you do that, your person gets stuck in an endless loop of staying in one spot and not beig able to move, because of that script, and another one like it, but with all blues replaced with orange, and all oranges replaced with blues. So when you enter one portal, you can't move in or out because both scripts are acting against eachother so fast. I know this is a bi confusing, but can anyone help me?
Offline
when gf clicked forever if <touching [blue v]?> go to [yellow v] wait until <not <touching [yellow v]?>> endand vice versa, each in a seperate script.
Last edited by Firedrake969 (2012-09-17 17:38:22)
Offline
Firedrake969 wrote:
when gf clicked forever if <touching [blue v]?> go to [yellow v] wait until <not <touching [yellow v]?>> endand vice versa, each in a seperate script.
this should work, but just remember that the most important part of portal is "speedy thing goes in, speedy thing comes out"
Offline
kayybee wrote:
Firedrake969 wrote:
when gf clicked forever if <touching [blue v]?> go to [yellow v] wait until <not <touching [yellow v]?>> endand vice versa, each in a seperate script.this should work, but just remember that the most important part of portal is "speedy thing goes in, speedy thing comes out"
I thought the most important part was that the cake is a lie..
Offline
kayybee wrote:
Firedrake969 wrote:
when gf clicked forever if <touching [blue v]?> go to [yellow v] wait until <not <touching [yellow v]?>> endand vice versa, each in a seperate script.this should work, but just remember that the most important part of portal is "speedy thing goes in, speedy thing comes out"
Yea, that's the problem I might have... And the part that you can put a portal ANYWHERE on the screen. Now, how do I fix THAT?
Offline
Firedrake969 wrote:
when gf clicked forever if <touching [blue v]?> go to [yellow v] wait until <not <touching [yellow v]?>> endand vice versa, each in a seperate script.
I tried it, but instead of being stuck, the player flickered really fast inbetween each one, and you had to move the portal at the right time to get where you wanted, What can I do about that?
Offline
I figured out a way to break the endless loop! You have to do it in a single script like this:
when gf clicked forever if <touching [blue v]?> go to [yellow v] wait until <not <touching [yellow v]?>> end if <touching [yellow v]?> go to [blue v] wait until <not <touching [blue v]?>>
Offline