The Daily Click ::. Forums ::. Klik Coding Help ::. Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Evil-Ville



Registered
  20/12/2004
Points
  283
27th January, 2005 at 11:40:49 -

Is there anyway to do an event similar to the "object is closer than X pixels from the edge" so that it only refers to bottom, top, left or right edge?

 
yay

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!
27th January, 2005 at 16:23:54 -

Yup. Stick an invisible object in the middle of the screen that doesn't follow the playfield, then test for objects greater than (screenwidth / 2 - X), positive or nagative, X or Y from it.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
28th January, 2005 at 03:19:43 -

If player's Y is higher than Y bottom frame - 20 or something, Do the stuff. Worked it out.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click