Unfortunately I have a similar problem with my player character but this time I don't know how to resolve it.
Like I said the player character is moving with the bullet behavior and the player is able to rotate the angle of bullet movement by 90 degrees by hitting the wasd keys. I have done this with these events:
Keyboard on W pressed - player - set bullet angle of motion to 270 degrees
player - set animation to "WalkNorth"
Same for A, S and D.
Collision check looks like this:
Player on collision with fence OR Player is overlapping fence - player set bullet disabled
Now I thought I can just stop the bullet movement when the player hits the fence and enable it again when the player hits one of the wasd keys. But the player character only moves a bit after rotating and then stops again. Again I think this is because he is still touching the fence. Also the player can just hit the w key when standing at the top fence and he will move a bit up every time he does which lets the player character move through the fence.
Then I tried to set the bullet speed to 0 when the player hits the fence but now it is acting pretty strange. When I hit the nort fence the character stops moving. A and D let him rotate to west or east but he only moves i tiny bit. When the character faces north and I hit W he doesn't rotate but moves a bit to the west. When I turn south and hit the S key he moves slightly to the east. I am not possible to move the character away from the fence.
You can download the file here: Unfortunately I have a similar problem with my player character but this time I don't know how to resolve it.
Like I said the player character is moving with the bullet behavior and the player is able to rotate the angle of bullet movement by 90 degrees by hitting the wasd keys. I have done this with these events:
Keyboard on W pressed - player - set bullet angle of motion to 270 degrees
player - set animation to "WalkNorth"
Same for A, S and D.
Collision check looks like this:
Player on collision with fence OR Player is overlapping fence - player set bullet disabled
Now I thought I can just stop the bullet movement when the player hits the fence and enable it again when the player hits one of the wasd keys. But the player character only moves a bit after rotating and then stops again. Again I think this is because he is still touching the fence. Also the player can just hit the w key when standing at the top fence and he will move a bit up every time he does which lets the player character move through the fence.
Then I tried to set the bullet speed to 0 when the player hits the fence but now it is acting pretty strange. When I hit the nort fence the character stops moving. A and D let him rotate to west or east but he only moves i tiny bit. When the character faces north and I hit W he doesn't rotate but moves a bit to the west. When I turn south and hit the S key he moves slightly to the east. I am not possible to move the character away from the fence.
You can download the file here: https: //www. dropbox. com/s/l5d5swmgasiy8a4/Snakelike.capx?dl=0
Edit: And again, as soon as you post your question you find the solution. Can someone explain to me why this is working now and if there is a "right" solution for this problem?