Game Development Community

Pushing a Rock

by Dave Krohne · in Technical Issues · 05/01/2007 (12:54 pm) · 3 replies

Ok, so I am a newbie... I have run into a simple problem in TGB and I just cannot get it to work.

I need my PLAYER to push a ROCK, that's it. I have tried all of the settings in Collisions and nothing seems to work. I have tried various code with the onCollision function and I also seem to have no luck.

All I want to do is push a rock Up, Down, Left & Right. What am I missing??

Note: It seems to interfere with my Up, Down, Left, Right player keyboard interface - The player keeps going "Left" even when the key is no longer pressed. (Player.cs based on fish game but using arrow keys.)

About the author

Recent Threads


#1
05/01/2007 (2:32 pm)
Well if it's just to push it like a boulder that a normal person could, I would look up the rigidshape resources. They are added as a part of the default engine now if I recall and you could pick up how to create the datablock for it.
#2
05/01/2007 (5:13 pm)
I'm sorry, I should have clarified T2D v1.1.3.

The rigidshape seems to be a 3d thing.
#3
05/03/2007 (11:47 pm)
Try it out anyway--there's probly a 2d equivalent. The two engines share rather a lot of code.

In fact it's irritating that the resources of one are hidden from the owners of the other, for that very reason.