User Tag List

Results 1 to 5 of 5

Thread: Newbie Loop Question

  1. #1
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newbie Loop Question

    Forgive the simplicity of this question - I have done a lot of searching and I've been at this for hours, I promise.

    To simplify this problem, I have 1 square active object. I also have 1 square "obstacle" backdrop, duplicated several times to make steps descending to the right. The idea is to make the object fall when it's not on a backdrop but move right when it is. And the move and fall rate are different.


    OBJECT overlaps backdrop: StartLoop "Horiz" x 2
    OBJECT Does Not overlap backdrop: StartLoop "Vert" x 4
    OnLoop "Vert": Set y(OBJECT)+=1
    OnLoop "Horiz": Set x(OBJECT)+=1
    OnLoop "Vert" && OBJECT overlaps backdrop: StopLoop "Vert"
    OnLoop "Horiz" && OBJECT Does Not overlap backdrop: StopLoop "Horiz"



    This works fine, except when I duplicate the object and put them at varying heights. In that case, it gets wonky when one is overlapping a backdrop and one isn't. If I wanted more than one of these OBJECTS, what would I do?

    I have the ForEach extension if that helps.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    712
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And just as a sidenote Ziplock: There are no newbie questions. Don´t worry. Keep on asking the guys in this forum. It´s awesome - you´ll see! You will always get help here for pretty much everything.

  3. #3
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, tried that code note for note and it doesn't work, even with 1 single object. I've gone over it with a fine tooth comb and I copied it perfectly. (I assume it was just a typo that it was startloop "Fall" / onloop "Falling," but I tried both ways to be sure).

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    swerdmurd's Avatar
    Join Date
    Apr 2013
    Location
    Austin, TX
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    iamjot is right, Ziplock. Assuming you use common forum etiquette, such as searching around a bit on the forums for a similar issue before making a post / providing adequate information / not getting hostile (which around here seems to always be the case), everyone answers everything. It's quite glorious.

  5. #5
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nailed it Snail - thanks.

    One more quick question - I'm trying to make the fall rate increase for each object.

    This really seems like the easy part, but every way I try it, it doesn't work at all, the loops don't seem to stop and it lags beyond repair, or the variable doesn't reset.

    I have tried this 100 ways. Right now I have:

    onLoop"vert": object.yPos += object.altA && object.altA += 0.1
    onLoop"horiz": set object.altA = 0

    Any advice on taking the previous code and making the fall rate increase for each object without changing anything else?

Similar Threads

  1. newbie question
    By PGspy18 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 17th July 2011, 08:20 PM
  2. newbie question
    By RA in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th May 2010, 12:32 AM
  3. Question from a Newbie
    By patf1944 in forum File Archive
    Replies: 2
    Last Post: 21st May 2008, 07:21 PM
  4. Newbie question...
    By Annsoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th January 2008, 03:12 PM
  5. Newbie Question, too!
    By Kid_Roleplay in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 28th October 2006, 04:52 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
  •