Yeah, it's better to put triggers (as On Touch End) to a separate event.
// First event For Each Button Touch is touching Button Bullets X=Button.X : Button set frame 1 ... // Second event On Any Touch End Touch is touching Button : Button set frame 0 ...
Create a variable jumpStr
Keyboard is Space down ... Set jumpStr to clamp(jumpStr+dt*500, 100, 1000) Keyboard On Space released ... Player set jump strength to jumpStr ... Player Simulate Jump ... Set jumpStr to 0
This will allow charge the jump from 100 to 1000 over ~2 seconds.
Try adding "System For Each Button" as the first condition in that event.
Develop games in your browser. Powerful, performant & highly capable.
CloudDealer
There are multiple problems with your JSON file. Press F12 in preview and you will see an error message saying that JSON data can't be parsed.
First, you can't use comments "//" in JSON. But there are other issues too - extra commas and closing brackets. Use any online JSON validation tool to check and fix your JSON data.
On Every Tick .. Gun Set position to Player position .. Gun Set angle toward position (Mouse.x, Mouse.y) .. Gun Move Forward 50 pixels
Here is my version:
| Global number r = 0 + On Space Key pressed -> System: Set r to PlatformInfo.CanvasDeviceWidth÷ViewportWidth(0) -> System: Take snapshot of canvas (PNG, quality 75, offset Sprite.X*r, Sprite.Y*r size Sprite.Width*r x Sprite.Height*r)
Did you export your game as an APK file?
If your phone doesn't let you install it, you may need to allow "installing apps from unknown sources" in settings. Try googling how to do it on your phone model.
You do not have permission to view this post
You can use find() expression.
System Compare Two Values: find(text, "jump") >= 0
Member since 26 May, 2016