User Tag List

Results 1 to 2 of 2

Thread: Slightly buggy engine

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Slightly buggy engine

    I'm working on an arcade beat-em-up style engine, but I'm having a few problems with the enemies. There are several of them on screen, but sometimes actions won't happen to all of them like it should. For instance there's an action to have the enemies pursue one of the player characters, that works fine, but part of the action should also have the character sprite face the player, and that only works on one instance of the enemies.

    I'm also having trouble with one of the enemy graphics sliding down from where they should be for some reason when there are several on screen at once.

    Here is a link to my WIP file. If anyone has any suggestions on how to handle these it would be greatly appreciated.
    http://www.floatinghandsstudios.com/...ackmasters.zip

    Sorry I'm not more specific about the code, but I have no idea what part of it is causing the problem.

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Slightly buggy engine

    I think I've figured out which command is messing the game up, but I still don't know why.

    For the enemies, their actions are mostly determined by their alt val A, and all of the events also have a line determining that a value in the enemy shadow is the same as a value in the enemy graphic to make sure that the animation and direction changes only happen to the proper instance of the enemy graphic.

    The problem seems to be that sometimes the actions don't occur to the graphic at all.

    For instance, after the enemy stikes the hero, the graphic turns to a pinball movement to hop backwards while the shadow is set to follow it's X value, and once it has fallen to where it's below the shadow it's supposed to set it back to static movement and adjust the animations properly.
    Here is the event I use for that:
    "[Alt val A of (Shadow) = 120] + [Alt val Z of (Enemy) = Fixed Val (Shadow)] + [Y(Enemy) > Y(Shadow)]
    --> [Change (Enemy) movement to static] + [Change (Enemy) animation to stopped] + [Change (Shadow) movement to 'walking'] + [Alt Val A of (Shadow) = 0] + [Alt Val C of (Shadow) = 0] + [Alt Val T of (Shadow) = 0]

    Just for clarification at the end there, Shadow's Alt Val A is what's checked to determine what actions it and it's Enemy graphic do, Alt Val C determines how the shadow and graphic are aligned with each other, and Alt Val T is which player the enemy is targeting. All of these are being reset in this action.

    The problem is that sometimes it doesn't seem to do the (Enemy) actions to it's graphic when there are more than one of them on screen. There always seems to be one of them that doesn't seem to get it's movement or animation changed so it starts slipping below the shadow.

    Any suggestions on why this wouldn't be working?

Similar Threads

  1. [Bug] Float values are slightly off
    By Popcorn in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 22nd May 2013, 09:44 AM
  2. Slightly curved text?
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 7th September 2009, 07:17 AM
  3. Slightly Confused
    By lembi2001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st June 2008, 01:44 AM
  4. slightly harder problem.
    By SEELE in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th January 2008, 02:27 AM

Posting Permissions

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