User Tag List

Results 1 to 6 of 6

Thread: I added some moving enemies. Now some things are acting up.

  1. #1
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I added some moving enemies. Now some things are acting up.

    I followed this tutorial to implement a simple enemy AI in my app.

    Except when I finished implementing it, things started acting up. Specifically, it's spawning my player character in the "enemy blocker" I added to keep the enemies from dropping off the ledge. On top of that I implemented checkpoints as well as a system where you can press "R" to restart the frame at it if you pass it. The problem? It restarts the frame but, it just spawns the player back at the "Enemy Blocker" it's spawning at instead of the checkpoint. On top of that, if I restart the frame again after that. It spawns the player IN THE WALL and makes it so that it moves (and pressing left/right just makes it go the opposite direction of what you're pressing). You can see this for yourself in the MFA. It's on Frame 2.

    ProtoApplication02.mfa

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,350
    Mentioned
    101 Post(s)
    Tagged
    0 Thread(s)
    The problem seems to be here, in this portion of your your global events:



    Events #48 and #50 are combining in such a way that you're essentially telling it (unintentionally, I assume) to position the player at the X & Y coordinates of enemy blocker, so that's what happens.

  3. #3
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The enemy blocker is in the level event editor, not the global events. I noticed that some stuff off with the code, so I adjusted it with the right Global values. Now nothing in the frame's working.
    Attached files Attached files

  4. #4
    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)
    If I inactivate lines 48 + 50 in your global events - then everything seems to be working.

  5. #5
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That worked, but the player won't respawn at the checkpoint.
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5

    Join Date
    Dec 2019
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind. Re-activated the line under Respawn and NOW everything’s working.

Similar Threads

  1. Help moving my enemies lacewing
    By Unknowner in forum Lacewing
    Replies: 5
    Last Post: 30th June 2017, 04:01 AM
  2. Enemies with moving hitboxes
    By OHMwake in forum Fusion 2.5
    Replies: 3
    Last Post: 15th January 2015, 09:58 AM
  3. Only added score of single enemy when destroy multiple enemies at a time.
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 11th April 2012, 11:26 AM
  4. Keeping things moving
    By AndyH in forum iOS Specific Example Files
    Replies: 5
    Last Post: 12th February 2012, 07:51 PM
  5. Enemies aren't moving right
    By Fralex in forum File Archive
    Replies: 0
    Last Post: 20th September 2010, 11:42 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
  •