D
DarthTenebris
Guest
Hello there my fellow programmers!
I've been working on a project by following a youtube video, but with a few modifications I made myself.
The problem I'm having is that when my character hits a block he isn't supposed to be standing on (standing, which means hitting the block from any other side doesn't matter), the game is supposed to restart. However, the game only restarts when he is fully on the block. What is supposed to happen is, that when he touches even the edge of the block, the game is supposed to restart. Any idea what I'm doing wrong? Please help...
Here is my current code:
I've been working on a project by following a youtube video, but with a few modifications I made myself.
The problem I'm having is that when my character hits a block he isn't supposed to be standing on (standing, which means hitting the block from any other side doesn't matter), the game is supposed to restart. However, the game only restarts when he is fully on the block. What is supposed to happen is, that when he touches even the edge of the block, the game is supposed to restart. Any idea what I'm doing wrong? Please help...
Here is my current code:
Code:
if !place_meeting(x,y + 1,obj_blockRed)
{
room_restart();
}