Make Enemy Run

Discussion in 'How Can I...?' started by patostar, Nov 13, 2018.

  1. patostar

    patostar Avid Boxer

    Joined:
    Jan 27, 2018
    Messages:
    483
    Likes Received:
    86
    Hello,

    I want the enemy to be walking left and right, I know how to do this of course, BUT when I am close to him I want him to make his special move like rolling on the ground, or transforming into another form, become bigger etc... how do I trigger the enemy when I am close to him? please someone help because this is very very important to my game, and I still don't know how to do it.
     
  2. Coldwilson

    Coldwilson Avid Boxer

    Joined:
    Dec 18, 2017
    Messages:
    109
    Likes Received:
    45
    You may well have already tried this but I just tried attaching an action with an animation to an object (say enemy) that sits around the object a distance you wish. Set it for n seconds. If character hits the action area then it's triggered. You need to get the scaling of the action object right. I first tried it using a random tiny png image I found and this caused the action animation, once triggered, to fill the entire screen.
     
    patostar likes this.
  3. patostar

    patostar Avid Boxer

    Joined:
    Jan 27, 2018
    Messages:
    483
    Likes Received:
    86
    Thanks a lot, I am not sure if I can do exactly as you did, but I was thinking about using an action, but I wasn't sure if it will work, I will try it right now.
     

Share This Page