Pushable Sprite vs Wall (Collisions)
by practicing01 · in Torque Game Builder · 08/21/2012 (4:14 am) · 2 replies
With CollisionPhysicsReceive="false"; on the character sprite, it can push around other sprites that have CollisionActiveSend = "1"; & CollisionPhysicsSend = "1";. However, I need a way to stop the character from going through tables and walls etc. With CollisionPhysicsReceive="true"; I can do that but then I lose the ability to push other sprites around. Is there a better method for making unpassable objects or pushable objects?
#2
08/21/2012 (8:26 am)
Thanks for the reply. I tried doing those things, the only way to make "immovable" objects work is by setting the main character sprite CollisionPhysicsReceive="true";. After that, I can't push other sprites around anymore. When I try, the velocity gets turned off or something and I have to keep tapping the key to "nudge" the object forward, instead of an effortless push. Why do I think the velocity gets turned off? When the character collides with an object and I slide off to the side, the character doesn't continue- I have to repress they key in that direction.
Torque Owner Alpha-Kand
Hunter's Meadow
Or perhaps make the unmoving objects receive physics false but send physics true.