[SOLVED]Scene Transition Glitch

RosalinaGalaxer

  • Posts: 141
Hey all, I'm back with that glitch I was talking about!

I've attached the code for the scene transition, but I'm pretty much going to let the gif speak for itself. Both scenes are connected to each other: I'm not popping into a scene I didn't know about.



Also, please ignore the giant six above my head, that was for testing purposes and I forgot to remove it.

« Last Edit: April 16, 2018, 01:49:29 pm by RosalinaGalaxer »
W̸͚̯̒͗̊̂͗̃ë̴͙̻̣̠͂́͑͘̕̚ỉ̶̱͚̤͕͍̮͛͂̇r̶̲̣̜̳͐̇͋͘d̸͈͎͓̙̔͜ ̵̠̫̜͋̄̔͘͜ǵ̷̯͍̽̍̉͐̽̈́l̶̡̛͎̬̮̮̬̠͌͊̓̇͘i̶̡̻̰̖͕̘̎͊̚t̶̬̬̤̣͌̆͌͐̔̇̀c̷̙̳̙͈̖̀̈̎̋͑̉͜͝h̴̫̀̏͜͝e̷̝͑̊̍͘s̷̥̰̙̠̺̫̆ ̷͈̯̝͘ͅe̸͍̣͇͙͕̖͗̉̓̃̓͌͝v̶͕͕̰̘̙̫͒̑e̷̞̤͍͔͐̽͌̓r̷̨̺̲͊̋͘͝͝y̸̛̱͂̚ẇ̴̨̯̤̠̱̭̣̈̍̓h̶̨̤͎̞͛͋ę̴̻̪̝̙̬̒͜r̵̗̟̼͋ĕ̴̙̬͐͌!̵̱̠̉

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

corbanwolf

  • Posts: 86
Try replacing [Y] with [Y-2]. The [x - x] can be found in maths actions. Try again if it happens, please

JeffreyDriver

  • Posts: 1769
So those are the two same scenes?  And you're just going back and forth? Can I see the code that set your X and Y attributes.
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

RosalinaGalaxer

  • Posts: 141
Try replacing [Y] with [Y-2]. The [x - x] can be found in maths actions. Try again if it happens, please
Odd request, but whatev. Tried it, and it spawned the player two pixels higher, as expected. The glitch still happened, however.

So those are the two same scenes?  And you're just going back and forth? Can I see the code that set your X and Y attributes.
Correct. If I leave "Test 1" and enter "Test 2" once, it's fine. If I enter "Test 1" again and re-enter "Test 2", the above occurs. I tried messing around in "Test 1" for awhile after re-entering it, but it made no difference. Code is attached. The code is located in the player, obviously.
W̸͚̯̒͗̊̂͗̃ë̴͙̻̣̠͂́͑͘̕̚ỉ̶̱͚̤͕͍̮͛͂̇r̶̲̣̜̳͐̇͋͘d̸͈͎͓̙̔͜ ̵̠̫̜͋̄̔͘͜ǵ̷̯͍̽̍̉͐̽̈́l̶̡̛͎̬̮̮̬̠͌͊̓̇͘i̶̡̻̰̖͕̘̎͊̚t̶̬̬̤̣͌̆͌͐̔̇̀c̷̙̳̙͈̖̀̈̎̋͑̉͜͝h̴̫̀̏͜͝e̷̝͑̊̍͘s̷̥̰̙̠̺̫̆ ̷͈̯̝͘ͅe̸͍̣͇͙͕̖͗̉̓̃̓͌͝v̶͕͕̰̘̙̫͒̑e̷̞̤͍͔͐̽͌̓r̷̨̺̲͊̋͘͝͝y̸̛̱͂̚ẇ̴̨̯̤̠̱̭̣̈̍̓h̶̨̤͎̞͛͋ę̴̻̪̝̙̬̒͜r̵̗̟̼͋ĕ̴̙̬͐͌!̵̱̠̉

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

JeffreyDriver

  • Posts: 1769
Can you try sticking that code in a 'when actor exits scene'
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

RosalinaGalaxer

  • Posts: 141
When I tried that, it didn't trigger, so now I have an invisible actor with physics off that only collides with the player.
W̸͚̯̒͗̊̂͗̃ë̴͙̻̣̠͂́͑͘̕̚ỉ̶̱͚̤͕͍̮͛͂̇r̶̲̣̜̳͐̇͋͘d̸͈͎͓̙̔͜ ̵̠̫̜͋̄̔͘͜ǵ̷̯͍̽̍̉͐̽̈́l̶̡̛͎̬̮̮̬̠͌͊̓̇͘i̶̡̻̰̖͕̘̎͊̚t̶̬̬̤̣͌̆͌͐̔̇̀c̷̙̳̙͈̖̀̈̎̋͑̉͜͝h̴̫̀̏͜͝e̷̝͑̊̍͘s̷̥̰̙̠̺̫̆ ̷͈̯̝͘ͅe̸͍̣͇͙͕̖͗̉̓̃̓͌͝v̶͕͕̰̘̙̫͒̑e̷̞̤͍͔͐̽͌̓r̷̨̺̲͊̋͘͝͝y̸̛̱͂̚ẇ̴̨̯̤̠̱̭̣̈̍̓h̶̨̤͎̞͛͋ę̴̻̪̝̙̬̒͜r̵̗̟̼͋ĕ̴̙̬͐͌!̵̱̠̉

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

letmethink

  • *
  • Posts: 2547
Is the y game attribute being set or changed anywhere else?
~Letmethink

RosalinaGalaxer

  • Posts: 141
Not as far as I know. I'll check next time I'm on Stencyl.
W̸͚̯̒͗̊̂͗̃ë̴͙̻̣̠͂́͑͘̕̚ỉ̶̱͚̤͕͍̮͛͂̇r̶̲̣̜̳͐̇͋͘d̸͈͎͓̙̔͜ ̵̠̫̜͋̄̔͘͜ǵ̷̯͍̽̍̉͐̽̈́l̶̡̛͎̬̮̮̬̠͌͊̓̇͘i̶̡̻̰̖͕̘̎͊̚t̶̬̬̤̣͌̆͌͐̔̇̀c̷̙̳̙͈̖̀̈̎̋͑̉͜͝h̴̫̀̏͜͝e̷̝͑̊̍͘s̷̥̰̙̠̺̫̆ ̷͈̯̝͘ͅe̸͍̣͇͙͕̖͗̉̓̃̓͌͝v̶͕͕̰̘̙̫͒̑e̷̞̤͍͔͐̽͌̓r̷̨̺̲͊̋͘͝͝y̸̛̱͂̚ẇ̴̨̯̤̠̱̭̣̈̍̓h̶̨̤͎̞͛͋ę̴̻̪̝̙̬̒͜r̵̗̟̼͋ĕ̴̙̬͐͌!̵̱̠̉

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

NickamonPoppytail

  • *
  • Posts: 1022
I think that the reason the player gets stuck in the ground may be because they’re being created where they would be as if the two scenes are connected, but since the scene you get stuck in the ground begins with a square collision tile higher than what the ground was on the scene beforehand. Because the player is placed at the same height from the previous scene, they are created from inside the ground.

Two potential solutions I can think of are destroying the first tile higher than the ground level on the first scene, or if you really want to keep that you need to figure out some way of detecting the ground height from the bottom of the scene and then creating your player accordingly. Maybe checking a game attribute?
046 121 116 105 116 110 101 100 105 032 121 109 032 116 117 111 098 097 032 110 111 105 116 115 101 117 113 032 111 110 032 101 118 097 104 032 100 108 117 111 104 115 032 117 111 089 032 046 084 074 032 101 114 097 032 115 108 097 105 116 105 110 105 032 121 077 032 046 117 111 121 032 107 099 097 116 116 097 032 108 108 105 116 115 032 108 108 105 119 032 073 032 100 110 065 032 046 116 114 105 104 115 032 115 105 104 116 032 103 110 105 114 097 101 119 032 108 108 105 116 115 032 109 097 032 073 032 046 110 111 115 032 115 105 104 032 109 097 032 073 032 046 101 109 032 119 111 110 107 032 121 097 109 032 117 111 089

RosalinaGalaxer

  • Posts: 141
Is the y game attribute being set or changed anywhere else?

The y attribute is not being changed anywhere.

I think that the reason the player gets stuck in the ground may be because they’re being created where they would be as if the two scenes are connected...

Both scenes start at seven  tiles high. Though that is a valid thought.


EDIT: I tested connecting "Test 1" to a third, completely unrelated scene, and the same glitch still occurs.
W̸͚̯̒͗̊̂͗̃ë̴͙̻̣̠͂́͑͘̕̚ỉ̶̱͚̤͕͍̮͛͂̇r̶̲̣̜̳͐̇͋͘d̸͈͎͓̙̔͜ ̵̠̫̜͋̄̔͘͜ǵ̷̯͍̽̍̉͐̽̈́l̶̡̛͎̬̮̮̬̠͌͊̓̇͘i̶̡̻̰̖͕̘̎͊̚t̶̬̬̤̣͌̆͌͐̔̇̀c̷̙̳̙͈̖̀̈̎̋͑̉͜͝h̴̫̀̏͜͝e̷̝͑̊̍͘s̷̥̰̙̠̺̫̆ ̷͈̯̝͘ͅe̸͍̣͇͙͕̖͗̉̓̃̓͌͝v̶͕͕̰̘̙̫͒̑e̷̞̤͍͔͐̽͌̓r̷̨̺̲͊̋͘͝͝y̸̛̱͂̚ẇ̴̨̯̤̠̱̭̣̈̍̓h̶̨̤͎̞͛͋ę̴̻̪̝̙̬̒͜r̵̗̟̼͋ĕ̴̙̬͐͌!̵̱̠̉

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

letmethink

  • *
  • Posts: 2547
If you use "y of 1st actor" rather than the game attribute y does the glitch still occur?
~Letmethink

RosalinaGalaxer

  • Posts: 141
Nope. Weeeeeiiiiird. Oh well. Now I just have to figure out why it spawns multiple characters on scene change.
Nevermind, fixed it.





Woot! 100th post!

« Last Edit: April 16, 2018, 01:50:00 pm by RosalinaGalaxer »
W̸͚̯̒͗̊̂͗̃ë̴͙̻̣̠͂́͑͘̕̚ỉ̶̱͚̤͕͍̮͛͂̇r̶̲̣̜̳͐̇͋͘d̸͈͎͓̙̔͜ ̵̠̫̜͋̄̔͘͜ǵ̷̯͍̽̍̉͐̽̈́l̶̡̛͎̬̮̮̬̠͌͊̓̇͘i̶̡̻̰̖͕̘̎͊̚t̶̬̬̤̣͌̆͌͐̔̇̀c̷̙̳̙͈̖̀̈̎̋͑̉͜͝h̴̫̀̏͜͝e̷̝͑̊̍͘s̷̥̰̙̠̺̫̆ ̷͈̯̝͘ͅe̸͍̣͇͙͕̖͗̉̓̃̓͌͝v̶͕͕̰̘̙̫͒̑e̷̞̤͍͔͐̽͌̓r̷̨̺̲͊̋͘͝͝y̸̛̱͂̚ẇ̴̨̯̤̠̱̭̣̈̍̓h̶̨̤͎̞͛͋ę̴̻̪̝̙̬̒͜r̵̗̟̼͋ĕ̴̙̬͐͌!̵̱̠̉

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz