The Daily Click ::. Forums ::. Klik Coding Help ::. Backdrop obstacles cease to be obstacles 16px off frame?
 

Post Reply  Post Oekaki 
 

Posted By Message

aphant



Registered
  18/05/2008
Points
  1242
9th January, 2009 at 07:48:31 -

I have a to-be pit of death on one of my levels. It is setup so that before I add the death triggers, it's an actual pit with a floor. However, when the backdrop objects (set to 'obstacle') ar 16 pixels or more lower than the frame boundary, they stop acting as obstacles. The player just falls right through as if it were just a normal backdrop.

What's going on? How can I fix this?

 

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
9th January, 2009 at 07:56:22 -

Right click on the level in storyboard or workspace
---> Properties
---> 2nd Tab
---> Check "Handle Background Collisions Even Out of Game Window"

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

aphant



Registered
  18/05/2008
Points
  1242
9th January, 2009 at 08:15:13 -

That's checked, but it's not doing anything.

EDIT: I found a workaround. I just put a detector at the top that knocks out the horizontal movement, and threw in the death trigger at the bottom. Weird that the collision tracking isn't working, though.

Edited by aphant

 

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
9th January, 2009 at 16:25:50 -

Enable Fine Detection and disable Inactive Upon Far From Playfield on the detectors?

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

aphant



Registered
  18/05/2008
Points
  1242
16th March, 2009 at 05:49:31 -

Still haven't fixed this.

Image

That red area shows roughly where background objects still act as obstacles. Below that, they don't. The space below the red area, and including it, is outside the normal frame area; I make it visible by expanding the virtual height of the frame when the player drops out of the bottom of the frame.

 

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
16th March, 2009 at 06:09:23 -

you could possibly make the frame as large as the sprites, and set the camera Y to the middle of the frame so it doesnt go below.

if youre using a smaller resolution, you could problably just say when whatever the camera object is is below whatever ammount of pixels then set screen to it.

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal
   

Post Reply



 



Advertisement

Worth A Click