User Tag List

Results 1 to 5 of 5

Thread: Changing multiple actives movement

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Sep 2018
    Posts
    24
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Question Changing multiple actives movement

    Hello everyone

    I'm having some problems with changing movement. What I'm trying to do is, when a player presses "space", his active objects stops and he gets control of another active for a few seconds. I'm attaching two examples so you can see what I'm talking about.

    At line 7 I added "Move = 0" and I set objectA to previous movement and objectB to next. And it works.

    But in another example at line 7, I'm trying to use "select movement" to give object A and B movements, and it doesn't work. Object A only moves slowly to the left and up. Is this some kind of a bug or is there something I'm missing?
    Attached files Attached files

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    Selecting a movement will reinitialize it, I don't know why only those directions are allowed just after the reinitialization, I'll check it, but anyway you shouldn't select the movement every game loop. Just do it when you really need to select a different movement.

    The problem doesn't happen with Previous movement as if it's the first movement in the list this function doesn't do anything (same thing for Next Movement and the last movement).

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Sep 2018
    Posts
    24
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I had a feeling it's something with selecting movement on every loop. It makes sense now.

    So how would one make the movement go back to original after some time? Without reinitilazing it every loop. I just can't figure it out. It works if I use two different keys to change movement, but using the same key to go back and forth, or using a timer to go back to original, I just can't figure it out.

    As soon as I use values I end up reinitilazing it on every loop.

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    Maybe just compare the current movement number (with the Compare 2 general values condition) and select the movement only if it's different?

    Code:
    * move = 0
    
    	+ NMovement( "Active" ) <> 0
    		Active : Select movement move (number 1)
    
    	+ NMovement( "Active 2" ) <> 1
    		Active 2 : Select movement stop (number 2)
    PS: I just see the number displayed in the text of the "Select movement" action is wrong, , it should display "Select movement move (number 0)" instead of "Select movement move (number 1)", as the NMovement expression and the Set Movement by expression actions use 0-based numbers. This will be fixed in the next update.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Sep 2018
    Posts
    24
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I see now I still have a lot to learn. It's so simple and yet I couldn't figure it out.

    Thank you very much

Similar Threads

  1. Replies: 3
    Last Post: 28th January 2017, 09:39 PM
  2. Replies: 15
    Last Post: 6th June 2016, 01:30 PM
  3. Will android runtime support changing of semi translucency of actives?
    By BrashMonkey in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 23rd November 2011, 07:18 AM
  4. X and Y values of multiple actives of the same typ
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th February 2011, 02:18 PM
  5. Help with creating multiple actives
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th August 2008, 11:18 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
  •