User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: Is there a way to make enemies only attack when they’re facing the player object?

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    662
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    I don't know why. I can't get your black object to do anything - not even a basic collision will work with it.

    What I did do was:
    1. Delete the black enemy.
    2. Clone the pink enemy and made a new one - enemy 3
    3. Put that everywhere there had been a black enemy.
    4. Removed the events that I had given you from the global list - put them in frame 2.
    5. Changed them to work with the qualifier - bad apple - not the individual enemy (which is why I had to take it out of global events)


    You could try that - it seemed to work.

    Is there a reason you want that pixel by pixel loop movement? Because you could give your enemy just a normal movement like bouncing ball, select only left and right - put a block left / block right - when it collides with block left - face the other direction - and vice versa. No loops needed. Only where you have only 1 blocker you would need two - one for the left and one for the right. You can change their speed to whatever you want it to be as well.

  2. #12
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was just following this tutorial.
    https://youtube.com/watch?v=XktQxCeuluo

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    662
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    There are a few glitches reported in the comments of the video - one of them being, things only worked if there was 1 enemy or enemy type.

    It just seems like a very complicated way of achieving something - I thought it might be interfering with why the black character didn't work - but I don't really know - it's just a guess.

    If you're happy with the way things are working, then keep it that way, but if your enemies are just walking left and right - then I'd go for something simpler.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Replies: 2
    Last Post: 29th June 2017, 02:49 AM
  2. How can I make an object go the direction it is facing?
    By yemibox51 in forum Developer Services
    Replies: 2
    Last Post: 29th June 2017, 02:49 AM
  3. How to make enemies attack randomly like age of empires?
    By denis6555 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 27th May 2014, 01:09 AM
  4. I'm trying to make enemies react "accurately" when I attack them (like Terraria).
    By edman3d in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd March 2013, 06:41 AM
  5. attack when facing enemy only
    By ionside in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th November 2008, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •