User Tag List

Results 1 to 6 of 6

Thread: Weird alt value bug

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Feb 2011
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weird alt value bug

    Hey all,

    okay so I am working on a game and I am having some trouble with my alt values I want it so that when the player colides with an object and the alt value a is greater than 0 it sets alt value b to 1 which causes one outcome to happen, and when alt value a is less or equal to 0 it sets alt value b to 2 which causes a different outcome now somtimes it works and sometimes it dosent now since this is a major gameplay bug I need it to be always working

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird alt value bug

    Would you upload your coding for that so we can have a look at "the bug"?

    Thanks,

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird alt value bug

    Yeah without seeing your mfa we won't really be able to help much... This sounds like an easy fix otherwise.

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Feb 2011
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird alt value bug

    Thanks guys, yeah that would help so heres a page I made off my website http://podunkstudioz.com/bwadao.html

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird alt value bug

    Ah I found your problem. I'm guessing it has to do with LV5 since you didn't specify... It appears you want the dead body to be created when the player falls on the spikes, but sometimes it isn't creating.

    Well a quick look at your first event and it explains why this is happening.

    You are checking for the player object colliding with the spike object, and when that happens you're subtracting from a global value by 1.

    This works fine if you only hit one spike ever... but if your player falls between two spikes, they are effectively colliding with two at the same time. Which means your event is subtracting 2 from your global value instantly, instead of just 1.

    To fix this... you just put a "only one action when event loops" condition into your very first condition there. This will ensure that during that game loop, if the player collides with any number of spikes, that it performs the action only one time and not for as many times as spikes collided.

    Problem solved.

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Feb 2011
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird alt value bug

    Thanks Alot Kondias, :grin: :grin: :grin: you are awesome

Similar Threads

  1. Weird bug...
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 7th March 2008, 12:05 PM
  2. Seriously Weird Bug
    By bkfitww in forum File Archive
    Replies: 11
    Last Post: 10th November 2006, 02:52 PM
  3. [Bug] Something really weird in MMF 2
    By Rushino in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th November 2006, 02:41 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
  •