Put those events as sub-event after you created them. Don't put them outside.
Put those events as sub-event after you created them.
Don't put them outside.
Thanks.This took a bit to figure out, but now the shooting works fine.
Another problem came up I can now shoot to the left, but now the bullets turn when I turn.
If I shoot to the right and move to the left the bullet turns left.
Sorry for the late reply. I'll try this out and see if it works out.
Develop games in your browser. Powerful, performant & highly capable.
I'm currently trying something out for a small platformer test.
It includes shooting, but the bullets keep flying to the right when the player is facing left.
Can anybody tell me what I'm missing?
I finally fixed the problem. I don't know what was causing it, but the audio is now playing normally. Thanks for the help.
I don't know what that means exactly, but on collision I set it to destroy both the player and enemy sprite. Now I'm changing it to set the the sprite invisible while disabling them to see if it makes a difference.
I'll report the results later.
I noticed the layout was made in a platformer style and my layout is made in a 8-directional style.
Maybe this has something to do with the problem.
Thanks I'll try using that example and the way I make the objects collide the object is by moving the blue square towards the red square with the arrow keys. Does doing that add to the problem?
I still haven't found the root the problem. I hope I someone can provide me an answer.
Sorry for making two replies but, I don't know how to post images on the forum so I'll put a link to the screenshot of my game layout. ibb.co/hnwOey
There is no background music in the game, but there is title music. I'll try stopping all of the music. I'll report back if it works or not.
Edit: It didn't work.
New user here
I'm making a small stealth game, but I'm having this audio problem where the game skip the music that's suppose to play when you reach the goal. Does anyone know how to solve this?