Game Development Community

Metroid Spider Ball functionality

by Brian Wilmeth · in Torque Game Builder · 02/19/2006 (7:53 am) · 4 replies

Is there a simple built in way to get the metroid spiderball effect.
If u don't know what this is then I suggest u pick up metroid for gameboy right away!! lol

anyway I want to take a ball and be able to stick to a wall and travel a long it, much like a spider!

I want to do this on the floor on the ceiling, on the walls etc..

However I don't want my ball to be off the floor, wall, ceiling etc.

Any simple way to do this?

#1
02/24/2006 (2:23 pm)
I would say you could switch the gravitational force on the object to point in the direction of the surface you were attaching to...

You would have to play around with how you would detect a switch in surfaces and corners might cause you some trouble. Maybe check for a combonation of directional control and surface contact (touching ground and wall when pressing directional pad towards wall would move you to the wall). You would probably want to switch the g force to down if the jump button was pressed... that way he would fall if on the ceiling or walls.

One thing im not sure about is when your checking for collision normals... what will it do if your getting collision from the side and below (2 different surfaces)... like a corner?

I mean what will it return when checking for a normal?
#2
02/24/2006 (7:10 pm)
I worked with this and when u interact with a new surface the normal changes. Yes I changed the gravity every time u hit a new normal.. And I stopped there.. I didn't feel I needed to stick to the surface.. Its very buggy though, the physics is shit at the moment..
#3
02/27/2006 (10:01 am)
about physics

was reading this the other day... it might help
#4
02/27/2006 (2:46 pm)
Another thing you will have to think about is the constant velocity directional controls (if on a joypad it would be the d-pad). Either the functionality of left and right would need to change with the gravity change or you would want to kill left and right on walls and switch to up and down.