User Tag List

Results 1 to 2 of 2

Thread: Why won't enemies function right? File included.

  1. #1
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why won't enemies function right? File included.

    Well you'll have to extract the files in to a folder if you want to be able to see things right because of the game using external files.

    I can't get the slimes to move all at once instead of taking turns like so. I'm even using fastloops and it refuses to work.

    The enemy code is in it's behaviors and sorry I didn't make any comments on how it works so here's the basics:
    Value U and V tells the enemy where you move to next since it's a tile by tile movement engine, U being the X position and V being the Y position. The code to make it actually move is where I used fastloops and I think is where it's malfunctioning and it's near the bottom of it's movement event group.

    Flag 0 tells the game the creature is moving so it doesn't fall out of sync with the movement engine and it turns off each time it's completed a move.

    Flag 8 is just a damage flag. Value O is just there to turn off it's damage animation because I couldn't get it to stop looping even though I only told it to loop so many times.

    Value M is a delay where the monster stands still for a few moments before changing directions when it runs in to something.

    I think that's all you need to know, if not then let me know.

    ALSO what's weird is, if you make them start out facing left or right they work just fine, but up or down doesn't work. If they start out left or right and attack you and start going up then they'll go through a solid object once then the one that did this works exactly as I want it to.

    Also if you want you can check out the scrolling engine I made which lets you define scrolling area boundaries with ease if you place two objects to define the upperleft and bottomright boundaries. The code is in the global events section under the Movement Engine and Four Directional Movement groups. I was wanting to post an example of this anyway to help people out and show them a way to do this with very little work involved.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Why won't enemies function right? File included.

    Uhhh... well is there some different way that works that I can achieve the same thing with?

Similar Threads

  1. Function Eggtimer problem // Power Function for MMF2 Android?
    By ogrgkyle in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th May 2013, 03:17 AM
  2. External File Not Included?
    By plusallofyou in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 27th April 2013, 11:42 PM
  3. thrown enemies not detecting other enemies
    By mobichan in forum File Archive
    Replies: 4
    Last Post: 8th April 2009, 06:40 PM
  4. Give my butterfly wings! (.mfa file included)
    By RobertRule in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th July 2008, 09:19 AM
  5. Movie files included in the exe file?
    By Solidghost in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th February 2008, 02:26 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
  •