Error

Olivia

Member
The game I made has an error as follows:
Initially when you move the character, nothing will happen.
Screenshot 2021-10-14 082822.png
Screenshot 2021-10-14 083023.png
but when I get to almost all the first 2 block I wont be able to move anymore.


This is what I have programmed for my character.
Screenshot 2021-10-14 083355.png
Screenshot 2021-10-14 083521.png
If someone knows how to fix it or find my mistake please tell me.
 

Attachments

FrostyCat

Redemption Seeker
First, learn to choose the correct section and post your code properly. Then re-read the tutorial's code on horizontal collisions, which should have this:
GML:
if (place_meeting(x+hsp, y, oinvisible_wall))
{
    while (!place_meeting(x+sign(hsp), y, oinvisible_wall))
Instead of what you did:
GML:
if (!place_meeting(x+hsp, y, oinvisible_wall))
{
    while (place_meeting(x+sign(hsp), y, oinvisible_wall))
 
Top