User Tag List

Results 1 to 4 of 4

Thread: Animation not playing when a button is pressed when specific things are set.

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Jan 2019
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Animation not playing when a button is pressed when specific things are set.

    Ok so basically, I'm currently making a joke fnaf fan game (Big deal I know). And there's this mechanic that if a monster comes in your office, you have to throw a basketball at it. But there's a problem. You see, if I throw the Basketball without the monster inside the office, the correct animation plays. BUT, if the monster is in the room and I try to throw the basketball, no animation plays and he just stands there. I've been trying to fix this for quite a while. But I gave up and decided
    to ask the clickteam forums.


    And to be helpful here's an MFA.

    https://drive.google.com/open?id=190uVH_xVR0GkD95jXc_qPCE2a7UIIl

    (It would let me upload it through here.)

    Edit: I don't know why it shows me the emoji in the link.

  2. #2
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Location
    Australia
    Posts
    229
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Under Line 2 you've got the following:
    Code:
    * Postion  of YugAi = 2
    	YugAi : Set position at (0,0) from Placeholder
    	 YugAi : Set IsInOffice  on
    	Office : Change animation sequence to YUG
    	Office : Start animation
    This means that when the variable Position==2, it will keep on changing the animation *back* to "YUG" every frame, which means if you change the animation sequence to the basketball, that event will keep changing it back to "YUG"

    one way to fix this is having it only do it once per loop, so any time Position=2 it will do it only the one time (but since the YUG animation doesn't loop it will instantly change it back to the empty office, unless you set the animation to loop *or* stop the animation)

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    The Line Position of YugAi = 2: runs the whole time that Position of YugAi is = 2. And this line Changes the rooms animation sequence to YUG. Which means that whatever else you're doing - that line is always changing the animation sequence back to YUG.

    To overcome this:
    Put the lines Position of YugAI = 1 and Position of YugAI = 2 in a group. When the user presses Space Bar - deactivate that group so that the animation will stop changing.
    When your animation is finished - activate the group again.

    (I had the page open - so didn't see that Marbenx had already answered this ...)

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Jan 2019
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That fixed it, thanks!

Similar Threads

  1. Ambiance sound stops when doing specific things.
    By KookieKooker in forum Fusion 2.5
    Replies: 2
    Last Post: 22nd February 2019, 11:30 PM
  2. Animation Freezes When More Than One Button Pressed
    By ChrisFrankie in forum Fusion 2.5
    Replies: 8
    Last Post: 19th December 2018, 08:25 AM
  3. Selection of 2 things before playing
    By Chia_yang in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd December 2012, 03:17 AM
  4. Animation not playing when holding a mouse button
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 10th March 2009, 05:56 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
  •