ome6a1717's Forum Posts

  • Hey Matt,

    Thanks for the response. I figured out another way to do - basically:

    System Event (if Distance(Player.X,Player.Y,BadGuy.X,BadGuy.Y) < 900

    Move (2) Pixels at angle Angle(BadGuy.X, BadGuy.Y, Player.X, Player.Y).

    Now my only issue is making it so if the badguy is moving between x angle and x angle, play "X" animation. But for some reason it doesn't seem to work.

    Anyone know how to change the enemy's animation based on it's movement?

    Thanks!

    Steve

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm creating a top-down rpg, and I'm trying to figure out how to do a couple things with the enemy:

    1. I'd like the enemy when > X amount of pixels away from the player to sine randomly horizontally AND vertically (similar to the old final fantasy npcs)

    2. Once I'm close enough to the enemy (< X amount of pixels), I'd like the enemy to follow the player WITHOUT rotating, but still changing the animation based on angle (ie. if I'm below the enemy, the enemy is playing a facing down animation; if I am to the right of the enemy, the enemy is playing the facing right animation)

    Can anyone please help with this? I can only seem to make the enemy follow me while rotating which looks ridiculous in an rpg :).

    Thanks in advance!

    Steve

  • Awesome, thanks so much.

  • Hey Alspal,

    Is that 2500 in one layer, or 2500 altogether?

    Thanks!

    Steve

  • Thanks for the quick reply!

    Good to know.

    The reason there are so many events is because I have to do a lot of "if player is angled this way, do this" for all 8 angles for each action. It adds up rather quickly :)

    Steve

  • I'm beginning development of a new rpg, and I already have over 60 events for just simple movement and attack commands (and I'm not even done with them!). At the moment, it runs perfectly, but I'm worried once the game gets larger and larger with tons of variables, and events that have action lists the size of trees, that the web browser won't be able to handle so much information.

    I'd really love to purchase a license of this, but before I do, I wanted to make sure that C2 was more than just a casual game maker for phones.

    Thanks!

    Steve