thenerd12's Forum Posts

  • thx I am gonna try it

  • anyone?

  • Hi, I've been away for a while. Anyway thx for your reply. You guys here are very helpful, I like this community.

  • I'd like my player to be able to execute a special move.

    I have this character which when jumps and I press down he execute a kick...

    Now I'd like him to be able to jump and if I press twice down it execute a "super" kick

    How do I implement it?

    Thx in advance for you replies!

  • Hi Kirat, (I know am a bit late) thx for you reply.

  • Hi, I want an enemy to play a series of animation like this:

    condition:

    enemy damage is more then 100

    enemy damage is less then 200

    enemy is not moving along path

    action

    set enemy animation to "animation idle"

    wait random (1.0,3.0)

    set enemy animation to "animation look left"

    wait random (1.0,3.0)

    set enemy animation to "animation look right"

    wait random (1.0,3.0)

    now I'd like to loop this action while the above condition is true...

  • You can store the occupied destinations in a array (by storing the destination instance ID or an actual XY position) then when you want to send an enemy to a destination, you loop through the destination instances and check for each if that destination is already in the array or not. If it is, skip it, else, add it to the array and send the enemy there. This should work until each destination has been assigned an enemy, then it's to you to see what you want to do from here

    Hi, I have never used arrays. I'am gonna try to understand how to use them following your solution. Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Guys I got another question, this a bit more complex

    If Enemy1 choose a random Destination but that destination is already "occupied" by other enemies I'd like the Enemy1 to choose another Destination.

    How can I tell to Enemy1 that the destination has randomly chosen is occupied by another enemy?

  • It worked, thank you!!! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • How to "Find path to" random instance of an object?

    well I cannot hotlink images... so hope someone understand what I mean

    I got an enemy with the Pathfining behavior, I want him to be able to move towards different instances of the same object...

    hope someone can help me...

    On the event sheet it looks like this:

    System every 2.0 seconds ---> Enemy Find path to (Destination.X, Destination.Y)

    On the layout I have many instances of "Destination" so I'd like that every 2 seconds the Enemy find path to a different instance of Destination.

    I know am total noob, please help me