The Daily Click ::. Forums ::. Klik Coding Help ::. Collision in 360 movement
 

Post Reply  Post Oekaki 
 

Posted By Message

Tar



Registered
  12/02/2005
Points
  13
14th October, 2006 at 11:17:46 -

I made 4 collision detectors, and put:
+"1up" press "up" and "front detector" is not overlaping "neutral" then -move front-
+"1up" press "left" and "left detector" is not overlaping "neutral" then -spin left-
...and so on...

Note: remplace -spin left- and -move front for the 360ºmovement...cos and sin thing.
And also "neutral" is a qualifier(group) consisting in all the walls and stuff that is going to block the player.

well...the problem is that the character behaves strangely when collisions something and rotates...I am sure you will know what is wrong.
What I want is that when the character collisions a wall at...lets say 35º, it continues going up, like sliding on a wall, get what I mean?
Thanks a lot....again.



 
n/a

Tar



Registered
  12/02/2005
Points
  13
14th October, 2006 at 11:18:12 -

Now I made 2 halfs of a elipse for the collision detector, and let the player always spin left and right, and only restricted front and back movement. It works a little better, but it stills a little ugly.
Help?.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
14th October, 2006 at 12:40:55 -

Uh, what?

 
n/a

Tar



Registered
  12/02/2005
Points
  13
17th October, 2006 at 09:44:56 -

oh...I guess I was easy on the introduction.

I maked a 360º top-down movement engine, the player can rotate left and right and also he can advance or go back, I dont know how to detect the collisions apropiatedly.

Could someone with experience in 360º top-down movement help me with that?.
Thanks

 
n/a

Hayo

Stone Goose

Registered
  15/08/2002
Points
  6949

Game of the Week WinnerHas Donated, Thank You!VIP MemberGOTM 3RD PLACE! - APRIL 2009Weekly Picture Me This Round 27 Winner!Weekly Picture Me This Round 41 Winner!Weekly Picture Me This Round 45 Winner!
17th October, 2006 at 15:07:36 -

This dutch foreigner here likes to know how to do 360º collision detection as well, I promise I will make a reaaal cool game with it, thanks

 
www.hayovanreek.nl

Tar



Registered
  12/02/2005
Points
  13
17th October, 2006 at 18:18:33 -

well...yes, foreigner. I'm from Argentina.
There's nobody there who could help me?.

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
17th October, 2006 at 18:55:17 -

Huh, actually, I think it could be done. Lemme try when I have a proper computer.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
17th October, 2006 at 21:59:15 -

It's a case of finding the normal, which is not something MMF really wants to do for you.
I suppose on a collision you could use fastloops to quickly position a rotating detector to find the exact point of collision, then use another rotating detector, this time centered on the first one, to determine the angle of the wall.
Wouldn't work properly on corners, but 95% of the time would probably be okay.

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
17th October, 2006 at 22:03:25 -

Impossible math. Not even Jesus likes the normal.

Image Edited by the Author.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Noyb



Registered
  31/05/2004
Points
  1117

VIP Member
18th October, 2006 at 00:10:01 -

I made a top-down custom engine a while ago that might be similar to what you're looking for: http://www.create-games.com/download.asp?id=4616

 
"Omg. Where did they get the idea to not use army guys? Are they taking drugs?" --Tim Schafer on originality in videogames

Tar



Registered
  12/02/2005
Points
  13
18th October, 2006 at 10:06:53 -

ahh yes...that did it.
Thanks

 
n/a
   

Post Reply



 



Advertisement

Worth A Click