User Tag List

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

Thread: Collision with box no longer working?

  1. #1
    Clicker Multimedia Fusion 2
    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)
    LobsterKing's Avatar
    Join Date
    Dec 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collision with box no longer working?

    Hello everyone!

    I finally bought MMF2 and converted my project from TGF1 to MMF2.

    I used transparent colours for some obstacle backgrounds, and used the "collision with box" option so these backgrounds objects are considered as solid blocks (so that even the transparent parts block the characters).

    Now that the game is converted to MMF2, I noticed the transparent colour is no longer blocking movement, even though the option "collision with box" is checked. What's going on? Am I insane?


    I'm using MMF2 standard, build R255.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Fine collision?

  3. #3
    Clicker Multimedia Fusion 2
    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)
    LobsterKing's Avatar
    Join Date
    Dec 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean fine detection? That's for active objects. Background objects have the option collision with box, and it doesn't seem to do anything.

  4. #4
    Clicker Multimedia Fusion 2
    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)
    LobsterKing's Avatar
    Join Date
    Dec 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Update on the situation! This particular issue only seems to happen if the layer containing my character and the backdrop object is not in layer #1. When I set to layer #1, the collision with box propertie is handled properly. On any other layer, my character moves through any transparent pixel as if collision with box was off.

    I suspect a dreadful bug and not a spiffy feature. Can anyone confirm if this is intended or not?

  5. #5
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    IIRC, there was some issues in 255 with backdrops and layer collissions, try updating to 256 and see if that works. If you register your serial on the forum you will gain access to the MMF2 Beta Lounge containing the very latest version. There was a LOT of fixes between 255 and 256 so I'm not 100% but it's certainly worth a shot.

    To do this, click Settings in the top right hand corner of this page and add to My Products.
    Want to learn Clickteam Fusion 2.5?




  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LobsterKing - I'm pretty sure that collisions only work on the same layer, eg an Active on Layer 2 won't collide with an Obstacle on Layer 1 but will with an Obstacle on Layer 2. Layers are generally used for parallax scrolling, where the background moves slower than the foreground. Of course, I could be wrong!

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    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
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AyreGuitar View Post
    LobsterKing - I'm pretty sure that collisions only work on the same layer, eg an Active on Layer 2 won't collide with an Obstacle on Layer 1 but will with an Obstacle on Layer 2. Layers are generally used for parallax scrolling, where the background moves slower than the foreground. Of course, I could be wrong!
    This is correct, objects have to be on the same layer for collisions.

  8. #8
    Clicker Multimedia Fusion 2
    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)
    LobsterKing's Avatar
    Join Date
    Dec 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AyreGuitar View Post
    LobsterKing - I'm pretty sure that collisions only work on the same layer, eg an Active on Layer 2 won't collide with an Obstacle on Layer 1 but will with an Obstacle on Layer 2. Layers are generally used for parallax scrolling, where the background moves slower than the foreground. Of course, I could be wrong!
    Yes, I knew that one! And it's exactly because I added parallax backgrounds that I started to have problems. The layer system didn't exist on TGF1 and I always wanted to add parallax :P

    I only use two layers: everything is on the first one and the other is only a background picture with a parallax effect. If I want the background... in the back, it must be on layer 1, while everything else is on layer 2. But the collision with box option only works for layer 1. In other words : The transparent pixels of obstacles on the same layer as the actives won't block the actives unless this layer is layer 1!


    @Danny : I checked the latest version threads, it looks like there are still some collision bugs in the latest release. I'll wait patiently for the final release of 256

    I just want the devs to be aware of this issue.

  9. #9
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    I've just tested an active object in fine collision mode and a backdrop object in box collision mode on various layers, that seems OK. Could you send me a very small example please?

    PS: there is no background collision issues with the build 256.34 and anyway this problem was a totally different issue.

  10. #10
    Clicker Multimedia Fusion 2
    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)
    LobsterKing's Avatar
    Join Date
    Dec 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Yves View Post
    Could you send me a very small example please?
    Well, I've got news.
    I created a new app in MMF2 to demonstrate the issue, probably just like you did, Yves - and this time there was no issue at all! The collision with box option worked for all layers.

    Since the game I'm working on was initially ported from TGF1, I re-created my example on TGF1, then ported it to MMF2, and added a new layer. Now the collision with box option didn't work for layer 2, like in my game.

    I searched for differences between each example, and found that the example initially created with MMF2 had "Handle background collisions even out of window" checked for each of its frames. Checking this option fixes it, and collision with box now works everywhere.
    I'll just enable it for each level in my game! It's a bit strange it has an effect on collision with box detection on some layers.


    ****


    Here's the example file (the one ported from TGF1) : boxtest4.mfa
    Two layers : one with the red actives and obstacles, and one with a transparent gradient.
    Press space to skip to the other frame, where the layers are switched.
    The red blocks should be blocked by the empty space between the two green blocks, but it's obviously not what is happening on the 1st frame.

    You can edit the game to check "handle bg collisions... etc" and the issue will disappear.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Get object no longer working in flash
    By crugh in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 11th March 2013, 02:13 PM
  2. Added backdrop collision not working
    By crusher in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 10th October 2011, 11:23 AM
  3. Collision on layer 2 not working properly
    By willy in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 2nd March 2011, 07:30 AM
  4. Collision with backdrop not working
    By timcclayton in forum Multimedia Fusion 2 - Technical Support
    Replies: 33
    Last Post: 14th December 2010, 08:17 AM
  5. Collision Detection Not Working
    By dcrew in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th October 2010, 02:02 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
  •