User Tag List

Results 1 to 9 of 9

Thread: Why doesn't this event work?

  1. #1
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why doesn't this event work?

    Quick explain: Platform game. 2 Detectors, 1 ground and 1 ceiling. In this event, the player is crawling. Alterable Value B is named Horiz and Alterable Value C is named HorizSpeed and is the speed of the character. No events changes this value yet, and it is 3.

    + Repeat While Moving Down
    + Repeat While Moving Right
    + FloorDetector is overlapping Obstacle
    + Alterable Value A = 0 (Probably not relevant, but it is 0)
    OR (Filtered)
    + Repeat While Moving Right
    + CeilingDetector is overlapping Obstacle
    + FloorDetector is overlapping Obstacle
    + Alterable Value A = 0 (Probably not relevant, but it is 0)

    = Set Horiz to 0+HorizSpeed("Player")

    The part bellow the OR is not working. I have tried with OR (Logically) too. Whats wrong?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Does the lower part work when its put into its own event?

  3. #3
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, it does not work alone neither... Its nothing wrong with it, right? Gotta be another event stopping it?

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Try debugging on-screen to see if the conditions are met.

    Create some text strings in the frame, create some conditions separately like:
    CeilingDetector is overlapping Obstacle = Set String ("Touching") / Same for Negating ("Not Touching")
    FloorDetector is overlapping Obstacle = Set String2 ("Touching") / Same for Negating ("Not Touching")

    Put all the conditions in that second batch into separate ones and test individually. You should be able to narrow it down then.

  5. #5
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    You can always do the "sound debugging"
    Play a sound when the event is triggered so you can hear it happening.

    If all the conditions are true then your actions are being preformed.

  6. #6
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All conditions should be met... Did a "successful" sound debug, but the player is just not moving. Hmm, this does not make sense. Gonna remove a few events at a time and try find an event that interferes.. If not, Ill upload an example - cause this is a bit weird.

  7. #7
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I give up... Look here:

    http://community.clickteam.com/showthread.php?t=67494&p=500691#post500691

    Controls are A for Left, D for Right, S for down. Space is jump and hold Shift to run. In the events, Up = Run faster, Fire 1 = Jump.

    Instructions on issue: Event #29 is the event to WALK to the right. I have added a line to prevent this event from working when the Crawl Detector is overlapping an obstacle, and the detector is only overlapping while crawling. The crawl event itself is #45. In my theory, these two together should make the player crawl to the right with 2 in speed, and not 4 (do not hold shift btw). The plan was to do this with all events, but since it werent working, I wanted to fix it first.

    My goal is to make the player able to crawl left and right with the right speed even if you dont hold S (down) while being under an obstacle instead of doing nothing - like it do now. It is the stuff under OR in #45 that is not working. If you know another way to fix this, feel free to tell me - but I am very curious of why this arent working.

  8. #8
    Clicker Multimedia Fusion 2
    Algul's Avatar
    Join Date
    Feb 2008
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't examine that file to much but I think that the problem is as follow

    OR (Filtered)
    + Repeat While Moving Right
    + CeilingDetector is overlapping Obstacle <-A
    + FloorDetector is overlapping Obstacle <-B
    + Alterable Value A = 0 (Probably not relevant, but it is 0)

    A = Condition A will select only those obstacle that overlap UpDetector
    B = Floordetector will never overlap obstacles that are selected by previous condition = condition will not be true

    you should have different events for overlaps of up and down detector and then store overlap as value
    then you should be able to compare to both values

    edit: I was unsuccessful trying to upload the file on forum so here on MFArepository View MFA

  9. #9
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aaaaaaah, that is pretty clever - and I bet thats what is wrong ... And by removing B (as when I think about it, Ceiling Detector will never overlap without Floor detector overlapping), this is working perfectly! Thanks a bunch!

Similar Threads

  1. Replies: 1
    Last Post: 8th October 2013, 06:15 AM
  2. Why doesn't this work?
    By LB in forum File Archive
    Replies: 1
    Last Post: 20th June 2010, 05:59 PM
  3. Why doesn't this work?
    By kungsangun in forum File Archive
    Replies: 8
    Last Post: 17th December 2008, 05:54 PM
  4. Event Editor's zoom in doesn't work
    By RayMarble in forum The Games Factory 2 - Technical Support
    Replies: 0
    Last Post: 9th October 2008, 07:22 PM
  5. Why doesn't this work?
    By kungsangun in forum File Archive
    Replies: 5
    Last Post: 8th July 2006, 01:37 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
  •