Basically, I need a way in the event processing to have a conditional branch like this:
if(player can move left)
{
do A;
}
else
{
do B;
}
By can move left I mean that if the player presses the left arrow then the player actually moves 1 tile to the left instead of hitting a wall/obstacle/etc.
Thanks in advance!
if(player can move left)
{
do A;
}
else
{
do B;
}
By can move left I mean that if the player presses the left arrow then the player actually moves 1 tile to the left instead of hitting a wall/obstacle/etc.
Thanks in advance!