The Daily Click ::. Forums ::. Klik Coding Help ::. A problem with collision and jump throughs.
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
4th January, 2009 at 23:25:00 -

In my game I am using the Platform movement object.b I have a move in my game where you can throw a projectile at a wall than stand on it, however if you throw another one while standing on the projectile you will fall. I realize this is because I told it to jump through the projectile when it overlaps, but is there anyway to make it so you can be standing on the projectile and be going through another one at the same time without it dropping you through what you are standing on?

Oh it is gonna look a bit weird, but when the second platform appears that means it was shot into the wall by the player.


Image

Image

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Deleted User
4th January, 2009 at 23:43:07 -

I don't know if this might work, but lets say that you can only stand on it when the players Y plus the ammount of pixels to the hot spot and the ammount of pixels to the stands hotspot is equal to the Y of the stand.

 

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
5th January, 2009 at 00:02:19 -

You could make a one pixel line and position it below the player, then make it so that when that is overlapping a platform and the player is moving down, the player will stop.

 
n/a ...

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
5th January, 2009 at 00:09:17 -

Instead of having it jump through when you're overlapping it, why not have it only collide at the base of the sprite? Make the base be the last one or two pixels at the bottom of the player, and only if the base is overlapping the platform will they stand on it.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Deleted User
5th January, 2009 at 00:09:26 -

That's almost what I said, except mine doesn't use active objects or even any kind of collision detection. I don't know if it'll work, but if it doesn't, Julian's definatly should.

EDIT: That was to Julian, and yeah, Lambert's got it.

Edited by an Administrator

 
   

Post Reply



 



Advertisement

Worth A Click