System compare variable User is not ""
You might want to look at some tutorials and read the manual..
Using the "Button set invisible" action?
Actually if you want the button invisible on start you could choose to set it invisible in it's properties and only set it visible when needed, or create the button object when needed using a system create action.
I'm not sure why you would want to use an external script for that..
I'm not sure why that is, but I always use the ViewportLeft(), ViewportRight(), ViewportTop() and ViewportBottom() expressions
So instead of Window width/2
I use
0,5*(ViewportRight(0)-ViewportLeft(0))
Every x seconds counts from the moment you start your program..
What you describe above is consistent with that..
Instead you might consider using a timer-bevaviour, set it to 5 seconds
on timer
create set timer for five seconds
create
set timer for five seconds
Regenerating the obstacle path every tick doesn't sound very usefull
Add a trigger once condition
crawl is false
sytem trigger once
crawl is true
-- systen trigger once
solid2 set Y to -100 regenerate obstacle map find path
solid2 set Y to -100
regenerate obstacle map
find path
-- on path found
...etcetera....
after regenerating the obstacle map, you will have to find the path again..
You can check if the animation is playing
You can even check the frame of the animation
Sprite - is playing animation
Sprite - compare frame
I usually do it this way:
you have two events "on highscore get", one setting it to 0 and one setting it to localstorage.Itemvalue..
When not in touch the value of touch.x = 0 as is the value of touch.y..
So you will have to create an action to set the touch.x and touch.y to the desired x and y when not touching.
It should be as easy as using the choose() expression at the right place, but without knowing how you have your events set up untill now telling you where the right place is is pretty hard..
Develop games in your browser. Powerful, performant & highly capable.
If it doesn't work on phone it sure isn't the action that doesn't work..
Probably your triggered event is wrong..
What is your event for making the player jump and what is the event for changing the gravity?
Would adding a system trigger once condition to that event help?
Member since 26 Apr, 2011