J
JadedFox
Guest
Hello there, second post. I plan to be quite active on this forum as I'm also teaching my niece GML. I'm having trouble with my instances, I'm making a platform game with ladders similar to donkey kong, but only some of the instances are working. In order to do the collision detection I have a global variable called platcollide set to false, which turns true when you collide with the instance of a bounding box already on-screen and turns off your vertical movement. I've placed the boxes below the ladders and there are three ladders. Here is the code for the bounding boxes and the character:
In collide with character event:
platcollide = true;
In character step event:
if (S && platcollide = false)
{
y+=spd;
}
and character collide event with ladder:
platcollide = false;
Two of my ladders and bounding boxes work, and one of them doesn't. I have no idea why one of them does not work. Any clues guys and gals?
Thanks!
Regards.
In collide with character event:
platcollide = true;
In character step event:
if (S && platcollide = false)
{
y+=spd;
}
and character collide event with ladder:
platcollide = false;
Two of my ladders and bounding boxes work, and one of them doesn't. I have no idea why one of them does not work. Any clues guys and gals?
Thanks!
Regards.