The Daily Click ::. Forums ::. Klik Coding Help ::. collision issues, things fall through the floor
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
9th December, 2008 at 23:40:49 -

ok, well, in my game the guns will fall to the floor when you drop them, but if the gun is out of the frame, then comes back into the frame, it falls through the floor, anyone know why?

 
[Game design makes my brain feel like its gonna explode.]

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
9th December, 2008 at 23:47:55 -

Hmm... it could be to do with detecting background collisions from a distance away (check the frame properties)?

You double posted so make sure you delete the other thread!

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
10th December, 2008 at 01:13:27 -

Also check the object's own properties so that it doesn't become inactive when it moves off screen.

 
.

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
12th December, 2008 at 00:26:39 -

yeah its detecting background collisions, and i have to make the guns inactive if to far from frame because all my platforms are actives, therefor if there not inactive if to far from frame the game slows waaaay down, any other suggestions?

 
[Game design makes my brain feel like its gonna explode.]

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
12th December, 2008 at 01:37:46 -

set alt val A to x of object when it hits the floor and set alt val b to y then use these values as the placeholders for the object. you will need to disable any movements you have set on the gun for it to work though.

 
n/a

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
12th December, 2008 at 01:45:34 -

but then it wont move right? that would completely defeat the purpose.

 
[Game design makes my brain feel like its gonna explode.]

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
12th December, 2008 at 17:21:04 -

no it would still move as the co-ordinates are the same no matter where you are on the game.

 
n/a

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
12th December, 2008 at 22:33:08 -

oh ok, ill give it a shot, ill let you know if it works out

 
[Game design makes my brain feel like its gonna explode.]

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
12th December, 2008 at 22:44:19 -

ok i guess i didnt do it right, could you tell me exactly how to set up the events?

 
[Game design makes my brain feel like its gonna explode.]

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
12th December, 2008 at 23:43:16 -

gun collides with active

set alt val a (gun) to x
set alt val b (gun) to y

always

set X gun to alt val a
set y gun to alt val b

that should work

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
13th December, 2008 at 00:02:53 -

Err, what about a Flag?

Gun collides with Platform -- Set Flag 0 on
Flag 0 is on - Stop gun

I'm assuming that all the collisions happen on screen.

 
Craps, I'm an old man!

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
13th December, 2008 at 00:15:42 -

thanks guys, knuddles way seems more conducive for the game, seeing as they have movements, but i will definitly use the other way in the next game im gonna make, thanks guys, this should work.

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click