Nitro187's Forum Posts

  • I'm trying to have my game zoom with the players... and the only thing I've been able to do, is in my attachment... which is extremely annoying, because the player has to get out of view completely before it zooms out, due to the condition I have in place.

    Is there a better way to accomplish what I'm trying to do here?

    Controls are : up,down,left, right, and w,a,s,d

    Thanks so much!

    nitrolic.com/zoom.capx

  • I'm trying to create an object at random intervals for each player.

    For example, when all players are not moving... after 5-10 seconds, I want one of them to drop something off their head... but I don't want them all to at the same time... I want them all to be random, between 5 and 10 seconds rather than all at once.

    What I have:

    System: For each player

    System: Each random(5,10) seconds

    Action: Create object Hair on layer 0 at (Player.X, Player.Y-20)

    What am I missing? They all do it at the exactly the same random number.

  • Thanks man - it worked. Hard to get your head wrapped around the way it works sometimes... but it makes sense now. :)

  • system pick nearest player?

    Never heard of that... nor do I see it... how can that be used in an action?

  • I think I figured it out.... but this may not be the best way:

    Rotate 3 degrees towards (Player(0).X, Player(0).Y)

    only thing is, I'll have to do that four times to each reference of "Player"... sigh.

    Is there another way? At least I have it working... some what.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Obviously everyone here should know how to make an enemy follow the player... I currently have 4 players, each with a different instance variable "player"... however, currently this is the code I'm using:

    For Each -> Baddie : Baddie -> Rotate 3 degrees toward (Player.X, Player.Y)

    Which makes the Baddie follow Player instance variable 0... for some reason, rather than all of them. How would I make it, so that it follows the closest one for example?

    I can't even do a "distance(Baddie.X, Baddie.Y, Player.X, Player.Y" because it assumes the first player instance.

    I really don't want to quadruple up on all my events to separately track each player.

    Any pointers?