User Tag List

Results 1 to 9 of 9

Thread: Duplicates

  1. #1
    No Products Registered

    Join Date
    Jan 2009
    Location
    Usa
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Duplicates

    Ok i have been looking at the forum searching for answer to a duplicate problem

    So simpicity, i will use a reference:
    In the classic super mario bros. game there are blocks were if u collided with them, you would stop,change the block's animtaion, and get a ceratain amount of points added to your score.

    I know how to do stop my character and change the animation, but i cant figure out how to add the points to the score.

    i have spread values(1 is my first value).
    These are my actions

    Always:Start loop"block",NObject(block) times

    On loop block, Player is overlapping block, current index of loop"block" equals ID (what i put the spread values into), then add 5 to score.

    i have also replaced "Player is overlapping block" with player collides with block.

    I think the problems is for the colliding one is that the action only happens when the ID of the object equals the loop index of loop"block". Thats when i changed it to overlapping

    ok lets say i have 5 blocks.
    Using the events from above, whenever i would collide or overlap, the score would go up continously. If i put in "only one action when event loops" then the score is added to only once. Also if i put repeat "x" amount of times, it goes up continously excepts that it stops at a certain value.

    I have look at ALL tutorials and am unable to figure out how to get it so that when the player collides with the block, that the score will be added to.

    In other words, if a person has already collided with a box, i dont want the score to be added to again. I am using duplicates and have looked at all of the tutorials on this forum, the dailyclick, and other community links. Help would be appreciated in detail and with step-by-step explanation

    I have probably missed something or havent explained something clearly so if u need me to explain something, done hesitate to ask!

  2. #2
    No Products Registered

    Join Date
    Jan 2009
    Location
    Usa
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Duplicates

    I figured it out

    but i had to recode everything
    in fact, using the tutorials made it worse

    so i must be doing it wrong.
    so could someone still answer my question from my previous post?

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Duplicates

    Well then you learned something! Time to pat yourself on the back
    What was your previous post?

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Duplicates

    Player collides with block
    + Flag 0 of block is off
    - Add 5 to score
    - Set flag 0 of block to on

    ??

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Sep 2008
    Location
    Melbourne, Australia
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Duplicates

    Hey Angelfox, would you mind giving a little description on how you fixed it?

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,247
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Duplicates

    If your blocks all share a Qualifier and they all have the same animations you could use the following:

    If (qualifier) flag is 0
    + animation (x) has finished


    add 5 points to score.
    DT
    Special Projects Director

  7. #7
    No Products Registered

    Join Date
    Jan 2009
    Location
    Usa
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Duplicates

    if you do any animation condition, dont do is animation (x) playing? thay only works for animations that loops

    wat i do is then i want the animation to change, i do my conditions, then set a flag on

    then i do if(condtion 1), and flag (x) is on, then(action)

  8. #8
    No Products Registered

    Join Date
    Dec 2008
    Location
    U.S.
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Duplicates

    Did you put the action for the player to fall down again? Just curious.

  9. #9
    No Products Registered

    Join Date
    Jan 2009
    Location
    Usa
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Duplicates

    fall?

    i put it so that when the player hits the block, the player stops

Similar Threads

  1. Duplicates and spreading values
    By KaiseanGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 14th January 2011, 03:14 PM
  2. Differentiating between duplicates
    By netninja in forum File Archive
    Replies: 3
    Last Post: 5th March 2009, 03:51 AM
  3. Collision between duplicates
    By Caiman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th October 2008, 09:12 PM
  4. Duplicates with different paths...
    By james_joyce in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 22nd January 2008, 09:57 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
  •