The Daily Click ::. Forums ::. Klik Coding Help ::. two objects in the window
 

Post Reply  Post Oekaki 
 

Posted By Message

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
8th June, 2004 at 11:42:02 -

Is it possible to make an event that says: When two actives is inside the window screen = do something. Not playfield, but the window.

 
http://www.robocaptain.com

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
8th June, 2004 at 11:56:56 -

You can retrieve the X and Y of each side of the current window screen.

 
a/n

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
8th June, 2004 at 12:14:52 -

ok. How do you do that properly? Is it like this:
X pos to "active 1" = frame with
+ Y pos to "active 1" = frame hight
+ X pos to "active 2" = frame with
+ Y pos to "active 2" = frame hight

Then do thing.

Is this correct?
Is there a way to shorten the code a bit down?

 
http://www.robocaptain.com

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
8th June, 2004 at 12:32:32 -

no, thats not it.

x position of object1 > x left frame
x position of object1 < x right frame
y position of object1 < y top frame
y position of object1 > y top frame

then set value a of object to 1

do the same for the 2nd object: then


Alt Value A of Object 1 = 1
Alt Value A of Object 2 = 1 then do whatever


Of course, to reset the Alt Values back to 0 you'd need to do (in the case for Object 1)



x position of object1 < x left frame: set value a to 0

x position of object1 > x right frame: set value a to 0

y position of object1 > y top frame: set value a to 0

y position of object1 < y top frame: set value a to 0


And the same for the other object. That should do it.


Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click