lionz's Forum Posts

  • Instead of distance 5, use a global variable which is initial value 5. Then you add logic, on enemy destroyed : add 1 to global variable.

  • There is no speed linked to line of sight, rephrase?

  • Post the events you used

  • Umm you have it set to play constantly. Try a system > trigger once combined with the tracknum=x conditions.

  • The rockets are acting independently from the player, they should be using the bullet behaviour so they act like a bullet and set angle toward player means they will direct towards the player location. Also to note you need to set angle toward player constantly or it will just pick the original location of the player and just go towards that and never update and follow the player.

  • Not really, you want to set the angle toward a position if it is like a homing missile. Your object with the bullet behaviour is a sprite? Use sprite - set angle toward player.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Set angle toward position : player.x,player.y

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Umm you are not destroying the objects? You need an event when the bullet on collision with family, destroy family.

  • Hiya, it's system (the cog icon) > compare 2 values. First value, family.count. 'equal to' Second value, 0. Then the action on the right side is 'restart layout'.

  • Hmm you said 3 guns. You mean one gun object that animates between 3 frames? You use a condition, depending on frame=0 or 1 or 2, you set the angle of the bullet to 0, 90 or 180.

  • Clicking the text object to exit the game works fine for me...

    As for the question, you can says if family1.count=0 then restart layout. count is the number of family1 objects in the layout which is 2 to begin with.

  • You do not have permission to view this post

  • This is just guess work without the file, please share the Construct 3 file.