oosyrag's Forum Posts

  • Are you trying to draw a line?

    Save the coordinates of touch in a variable at the end of each tick, and draw a line from those coordinates to the current coordinates. Draw the dots as well, to keep it smooth when changing directions.

  • You're probably using the wait action wrong.

    Do you have an "On signalling connected" trigger event to catch the successful connection?

    It would be useful if you showed your actual events.

  • If framerate independent mode isn't working for you (have you confirmed it is set properly?), you might consider using an alternative behavior. Many games don't need physics that can't be simulated with other behaviors, and if precision and consistency are priorities, it may be best to implement your own pseudo-physics.

  • Use the tween behavior.

  • You asked for an example equation. The equation is different depending on how you want to draw the arc at different distances.

  • It's more physics than math. You still need to describe in more detail the desired behavior. If the input value is the destination coordinates (instead of origin angle and velocity), would you want the resulting arc of travel have a static angle, velocity, or vertical height?

  • Aiming arcs are generally described from the origin to destination, one step at a time, rather than from a center point.

    The functions for the x and y components are x = horizontal velocity * time, and y = vertical velocity * gravity * time.

    The initial velocities can be found per angle by using sin and cos on the angle multiplied by a power value.

    Edit: sorry looks like your going for an isometric arc based on your screenshot. In that case, your x and y are both constant and you'll need to add a z component, which is affected by gravity. In effect, the z value is added to the y value to display "height". When z is equal to or less than 0 is when your projectile hits the "ground".

  • Objects can be added to multiple families. You shouldn't need to get rid of the old ones or consolidate variables.

  • Just wanted to chime in that it's usually a good idea to design your code so that order does not matter in json.

  • random(layoutwidth/2,layoutwidth)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh interesting. Looks like that file opens in https://editor.construct.net/r317/ but not later.

    Probably deserves a bug report.

    Edit: Looks like it is because R318 depreciated a condition. Not sure if it's still supposed to load or not anyway though.

    Multiplayer: deprecate 'Supports multiplayer' condition as it has been widely supported by all browsers for years now

  • Use a timer behavior. Spawn dialogue on timer complete, reset it back to 10 minutes on any input.

  • What's outdated about it? The multiplayer plugin hasn't exactly changed much since it came out a decade ago.

  • Try:

    Restarting your browser

    Use a different browser

    Disable browser extensions

    Allowing cookies/other privacy settings

    Clearing cache and logging in again

  • Because enemy.x and player.x are never exactly equal to each other.

    Try using a range, or rounding the values.