rf900's Recent Forum Activity

  • I see something that may be what you are looking for...

    Move to object

    Move the object next to another object in the Z order. You can choose to place the object to be placed in front or behind another object. If the target object is on a different layer, the object will also be moved to the target object's layer and then Z ordered next to it.

    It is under the zorder actions, maybe it is a limitation on the plugin.

  • I did something similar with a top down car game, but it was with fewer instances and it soon become a nightmare to make some intelligent AI driving. The video looks impressive congratulations.

    I assume you are doing all of this per tick, maybe try reducing it and doing it per X seconds.

    Another way would be to check first the distance of the ships to obstacles (maybe including directions/movement sort of predicting what will happen), if it is in a "safe zone" then do no more checks to save CPU.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The linear speed is variable, I guess you can calculate it by checking the position at several time intervals.

    You initialize the oldXposition of the sprite.

    Every S seconds you get the newXposition of the sprite, calculate the speed with ABS(newXposition-oldXposition) and just afterwards update the oldXposition with the newXposition value.

    This will give you the speed in px per S seconds you have defined. If the S value is too small, reaching the per tick system limit, I guess that it will give bad readings. The speed of the sine goes from 0 in the edges to the max speed when passing the initial point.

rf900's avatar

rf900

Member since 22 Apr, 2015

None one is following rf900 yet!

Trophy Case

  • 9-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

11/44
How to earn trophies