problem with overlapping and collision

Hey, I am having trouble with collision or overlap rule conditions. I set to resize the actor from 27X36 to 81X108 with constrain attributes and change attribute, but the condition for the collision seems to be invalid. I changed it to actor receives event>touch>press and it works perfectly. Also it works with out the resizing. How can I correct this if I can?

Best Answer

  • PixelMetalPixelMetal Posts: 283
    Accepted Answer
    I don't think you can - resizing doesn't seem to update the size of the collision area at all.

Answers

  • jygojygo Member Posts: 2
    I see. Thank you.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @PixelMetal for info: if the actor's size was enlarged with the Change Size Behaviour then collision detection didn't used to work, but it does now....

    And so does collision detection still work OK if the actor changes size with Change Attribute behaviours, and even Interpolate behaviours making it larger over time.

    So @jygo, I suspect something else is going on here.... first to ask, what are you using the constrain Attributes for? And just to confirm, you're changing the actor's size immediately with Change Attribute behaviours, yes?

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • jygojygo Member Posts: 2
    edited January 2013
    Found the issue, it looks like it still doesn't work with constrain attributes but if I change the initial values for the attributes and use change attribute it works. I need to learn how to make a load page which might solve the problem in the long term. Thanks @gyroscope.
Sign In or Register to comment.