User Tag List

Results 1 to 7 of 7

Thread: please help me with logic

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    please help me with logic

    hi all...
    sorry if my posting is to basic. Until my demo of MMF2 is out of date, I want to learn almost all the logic I want to know. So, by the time I buy it at least I know how to use it.
    If my question already asked in other another post, please be kind to show me the link and I will go there. thanks to everyone.

    I seems still can't figure out the logic in MMF2..
    oke, I have 2 object as player and 2 object as dice. I have logic in mind works like this:

    if (dice1 flag0 = off) and (GlobalValueA <> 0) then
    ..for GlobalValueB = 1 to GlobalValueA then
    ....if player1 active = true then
    ......case player1 valueA of
    ........1 : PosX player1 = PosX player1 + 35
    ........2 : PosY player1 = PosY player1 - 35
    ........3 : PosX player1 = PosX player1 - 35
    ........4 : PosY player1 = PosY player1 + 35
    ......endcase
    ....else
    ....if player2 active = true then
    ......case player2 valueA of
    ........1 : PosX player2 = PosX player2 + 35
    ........2 : PosY player2 = PosY player2 - 35
    ........3 : PosX player2 = PosX player2 - 35
    ........4 : PosY player2 = PosY player2 + 35
    ......endcase
    ....endif
    ..endfor
    ..GlobalValueA <- 0
    endif

    how can I put that logic into MMF2 logic ??
    and how about if I have more than 2 players ?? sayyy... 4-6 players ? is that I have to put more else in for loop ??

    thanks for all the help.

  2. #2
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: please help me with logic

    no one can help me ??..

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: please help me with logic

    Use an event group with subevent groups for the case statements. (Take another look at that beginner's maze).

    Subevent groups are groups of events within an event group.

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: please help me with logic

    I have... but I can't understand the loop...
    I mean... I can't put the word "don't add or subt 35 if the globalvalueA is 0"... is that I have to put it on every condition ??

    and if I put the "repeat globalvalueA times", it looks like it can't repeat the whole group event, only the line event where the "repeat.." is...

    sorry.. I am totally loss...

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: please help me with logic

    You can program a loop yourself by adding/subtracting from a counter. I'll upload a very simple example

  6. #6
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: please help me with logic

    ouu... thank you very much... you are really an angel with this MMF2 things... you're a good one.... I will wait your example...

    thank you very much...

  7. #7
    No Products Registered

    Join Date
    Oct 2006
    Location
    somewhere on Java Island
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: please help me with logic

    thanks sarah.. I have see your loop... one piece of my mind had open... now I try to open it another part of it..

Similar Threads

  1. How does this logic work?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th August 2012, 04:10 PM
  2. What is the Logic Behind This? (negate object overlapping "logic")
    By Blue66 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th January 2012, 11:54 PM
  3. Weird logic (w/ example)
    By willy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th June 2010, 06:07 PM
  4. Help with counter logic, help! please
    By scurvy in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 30th June 2008, 08:53 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
  •