Uncaught TypeError: Cannot read propert 'current_event' of undefined http://localhost:50000/preview.js, line 4778 (col 50)
I was having a variable that when it hits that variable it goes to a different layout then goes to the layout then set the variable to 0 to stop looping....
Is there a way I could export it as a file where you do not need construct 2 to run?
Develop games in your browser. Powerful, performant & highly capable.
phantomunboxing Your problem is this line: CloneTrooperHealth=0 -> System Go to go to level and the other lines where you compare if the enemy has health zero. The Variable you set to 0 at the end of the fight is still zero if you switch back to your level-menu and the event sheet is one big loop. So every time it compares the health variable and it is set to zero it switches immediately back to you level menu. So the click in the menu works but it switches so fast back to the menu you doesn't see anything of the other layout. You have either set the health to another value then zero after beaten the enemy or have a variable set when a level is beaten and compare against this variable.
phantomunboxing
Your problem is this line:
CloneTrooperHealth=0 -> System Go to go to level
and the other lines where you compare if the enemy has health zero.
The Variable you set to 0 at the end of the fight is still zero if you switch back to your level-menu and the event sheet is one big loop. So every time it compares the health variable and it is set to zero it switches immediately back to you level menu. So the click in the menu works but it switches so fast back to the menu you doesn't see anything of the other layout. You have either set the health to another value then zero after beaten the enemy or have a variable set when a level is beaten and compare against this variable.
THANK YOU SO MUCH <3
Trying to help from a video is difficult. Is it at all possible for you to just create a simple .capx that shows the problem?
Trying to help from a video is difficult.
Is it at all possible for you to just create a simple .capx that shows the problem?
Here is a link to it https://www.mediafire.com/?t9wa6wl7w6gjsef
My end goal is for when the global variable for the health of the enemy is to set to 0, the position of the buttons come on screen
phantomunboxing A really wild guess, have you linked the layout with the two not working button to your event sheet?
A really wild guess, have you linked the layout with the two not working button to your event sheet?
I have linked them.
phantomunboxing There is no need to bump your own thread after less than an hour. You need to give users from differing time zones enough time to respond if they are able.
There is no need to bump your own thread after less than an hour.
You need to give users from differing time zones enough time to respond if they are able.
Sorry I am just really scared cuz I have a really soon deadline
anyone... this game is due on monday
Here is a link to the glitch in action https://youtu.be/F69Vr-ZBDrc If you have any questions about code just comment....
you are using 8 direction behaviour, which rotates the sprite.. turn of rotate in the behaviour settings.. Using the platform behaviour for this movement would even be easier..
you are using 8 direction behaviour, which rotates the sprite..
turn of rotate in the behaviour settings..
Using the platform behaviour for this movement would even be easier..
Thank You So MUCH!! This game is due in a week so... xD
Here is a link to what is happening https://youtu.be/itt6mCtXrKs
Something along the lines of this h t t p : / / bipingo.com/img/TableTopBagatelle04. png I want to shoot the balls up the side and then fall down and slot into scoring zones, but my ball is just bouncing around like crazy even with gravity insanely high.
On the sprite of the ball the gravity should be assigned a number, just put that number lower
Any idea how to do this? The way i am doing it now is super ineffective and sooo annoying to do!
Member since 26 Jun, 2015