Different Collision effects at certain points of actor

HairyMuffinManHairyMuffinMan Member Posts: 36
edited November -1 in Working with GS (Mac)
Ok, let's say I have a battle ram as an actor.

And I want its front to have a different collision effect with the wall than its back.

I recall this was possible in Actionscript.

I tried this by "grouping" 2 actors into one here, hence my other thread there, like the vehicle as actor 1 and the hammer ram as actor 2. But there's an annoying delay for the hammer to reposition itself when you move the battleram's vehicle.

any ideas?

Comments

  • dotsonj23dotsonj23 Member Posts: 316
    Not sure I completely understand the question. But you might try making the visible battle ram one actor. Then constrain two invisible actors to it where you want the different collision effect to occur. Then when invisible actor one collides with wall, have the wall react however you want for that collision. But when the other invisible actor hits the wall, have the collision do something else to the wall. The problem with this is now your vehicle and hammer ram are static, so if you wanted the hammer ram to move independently of the vehicle it can't.

    Alternatively, you should be able to do it the way you were trying. I believe the delay in movement you are talking about is due to the order of operations in GS. I had a similar problem with a vehicle and its wheels (which were two seperate actors). There was always a delay on the wheels catching up with the body even when constrained to the body with offsets. I finally figured out what the problem was, the order of operations in GS between actors is bottom most actor (i.e, first actor placed on bottom most layer) has rules executed first, then second actor placed on bottom most layer, etc... until you get to the last actor placed on the topmost layer. Thus, what you need to do to fix this issue (assuming I am understanding your problem correctly) is to have the actor that controls the movement of your other actors beneath (in terms of layers and initial placement) the actors that are controlled.
  • HairyMuffinManHairyMuffinMan Member Posts: 36
    You got me right dot.

    But isn't there better ways than those?

    In AS' flash, it's possible, let's say to assign a collision effect for specific pixel of the actor, the concept there called "Pixel-level collision detection".

    Is there anything similar in GS?
Sign In or Register to comment.