User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Couple of Qs

  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)

    Couple of Qs

    This works with a ForEach loop where multiple enemies will spawn and set their X variable to the fixed value of the spawner, but I want to eliminate the need for a ForEach loop. It generates multiple enemies, but it sets the X variable to only the first instance of the spawner. What do I change with what's going on below?

    IF X position of Spawner >= X( "Player Detection" )-Abs(X( "Player Detection" )-X Left Frame)
    IF X position of Spawner <= X( "Player Detection" )+Abs(X( "Player Detection" )-X Right Frame)
    IF Alterable Value C of Player Detection = 0
    IF Spawner: internal flag 0 is off
    IF Spawner: internal flag 1 is on

    THEN Create Enemy at (0,0) from Spawner
    THEN Set Enemy Alterable Value X to Fixed("Spawner")
    THEN Set internal flag 0 on for Spawner
    THEN Set internal flag 1 off for Spawner

    Also, how do I test if an object is not between two coordinates in the same event without using or?

  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)
    X position of Spawner > X
    +X position of Spawner < X

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

  3. #3
    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)
    That didn't work for me, I want it in a single event without using or to be something like

    IF X position of Spawner less than 90
    IF X position of Spawner greater than 180

    THEN create Enemy.

  4. #4
    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)
    X position of Spawner < 90
    +X position of Spawner > 180
    --->create enemy

    Marv

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

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I don't think this can happen, X position of Spawner < 90 +X position of Spawner > 180
    --->create enemy, because the Spawner will never be in that position to create the enemy.

  6. #6
    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)
    Yeah but I saw years ago there was a way to do it. I keep trying Marv's example but it doesn't work in the same event.

  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Marv's example is two conditions, maybe you're missing that part?
    Working as fast as I can on Fusion 3

  8. #8
    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)
    Well I already know how to do it with two conditions, but I've seen it done in one condition years ago, I just can't remember how it was done.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Maybe:
    X position of Spawner < 90
    OR
    X position of Spawner > 180
    Only one action when event loops......... "create enemy"

  10. #10
    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)
    What I saw was done in MMF1.5 I believe, before or existed in MMF. I am already using or and it has 4 other conditions for one side of the or that I have to copy three more times in the same event to account for four different situations separated by or. My event is nearly taking up the whole height of the screen, which could be cut down to 1/4th the size if I could simply test if an object is not between two coordinates without using or or multiple events.

    I wouldn't really care about this if I only had to have this code in my game one time, but I have to have it for every type of spawn point and corresponding enemy.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Couple of Questions.
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st November 2008, 12:30 AM
  2. A couple of questions
    By Karl in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th September 2008, 06:59 AM
  3. need help w/ a couple issues PLEASE! :)
    By sephetious in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th September 2008, 09:54 PM
  4. Just a couple of suggestions
    By jrt42 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th May 2008, 02:10 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
  •