dop2000's Forum Posts

  • 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 ...
    
    
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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 do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You can use find() expression.

    System Compare Two Values: find(text, "jump") >= 0

  • You do not have permission to view this post

  • Construct can't play animations at speeds higher than the frame rate (which is a weird limitation in my opinion). So you will have to play the animation by changing frames with events. You can, for example, use Tween behavior - tween a value from 0 to 960 and while the tween is playing, set animation frame to Sprite.Tween("tag").value

  • You can remove the Brightness effect, try different colors in the mask sprite.. With effects it's all about experimenting.