S
SonicTheHedgehog+123
Guest
I want that my player to restart the room when he is between a vertical platform and the floor.
It works that when he is meeting the floor and the platform he restarts the room. But the strange problem I have is when I am jumping on the y axis of the platform and the platform is moving downwards. The player gets stuck in it. My vertical platform object is solid so this shouldnt happen. The platform.speed is faster than my player speed. I asume it has to do with either two things
1. The vertical object is faster than the player jump so the player gets stuck in it
2. I made a code if the platform is meeting the wall vspeed = -vspeed so when the player does jump it sets -vspeed +vspeed so vspeed = 0
It is a problem that stucks with me.
Open for any given help.
It works that when he is meeting the floor and the platform he restarts the room. But the strange problem I have is when I am jumping on the y axis of the platform and the platform is moving downwards. The player gets stuck in it. My vertical platform object is solid so this shouldnt happen. The platform.speed is faster than my player speed. I asume it has to do with either two things
1. The vertical object is faster than the player jump so the player gets stuck in it
2. I made a code if the platform is meeting the wall vspeed = -vspeed so when the player does jump it sets -vspeed +vspeed so vspeed = 0
It is a problem that stucks with me.
Open for any given help.
Code:
if place_meeting(x,y+1,Beweger)&& place_meeting(x,y+1,Wand)
{room_goto(Restart)}