shinyk's Forum Posts

  • 8 posts
  • Hello, I found the problem. I went back to the code where I used the "for each" loop, and found that I simply had inconsistent instance variables. two ships had 0 set for range, and the other three ships worked as they should have. I just had to set the variables and it worked as intended.

  • Hello,

    I am trying to make a project where you have spaceships with a set range of movement.

    All the ships are part of a family called "units", and inherit an instance variable for range from it.

    In the code, i compare distance from its starting position.

    As long as it stays within the parameters, it moves freely to wherever you clicked.

    Here is a screenshot.

    The issue that keeps occurring is that when I tweaked the code, either all the ships stayed in the smallest range, or only one of each object type under the family stays in its own range.

    I suspect that the issue is related to the family that all the ships are under "Units".

    any suggestions on how to fix this?

    Thank you all so much

  • Ok, thank you for info i appreciate it!

  • Hello, i am trying to create a game where there are four players, each on a split screen. i have seen Give me a Pixel's tutorial, but i still don't fully understand the system behind it. anyone mind explaining how it works?

    thanks

  • ok thank you it worked!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thank you, both methods are working to single out the two colliding Birds, but they don't always destroy the smaller bird. how could I alter the code to do so?

  • hello, I have been having issues with singling out UID's of two colliding objects which are both the same sprite (Bird). my intention is that the smaller bird gets destroyed and the bigger bird grows in size while many other birds do the same, but it keeps destroying other birds. how do I get the UID's of both birds when they collide? here is what I have so far. (also repeated in open topic)

  • hello, I have been having issues with singling out UID's of two colliding objects which are both the same sprite (Bird). my intention is that the smaller bird gets destroyed and the bigger bird grows in size while many other birds do the same, but it keeps destroying other birds. how do I get the UID's of both birds when they collide? here is what I have so far.

  • 8 posts