Author Topic: AGI Mouse  (Read 3527 times)

0 Members and 1 Guest are viewing this topic.

Offline Allen

AGI Mouse
« on: May 13, 2003, 10:52:58 AM »
How do I check if the user has clicked on a certain point of the screen? eg, if they click on a lamp, it falls on someone.


http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!

Offline robingravel

Re:AGI Mouse
« Reply #1 on: May 13, 2003, 11:03:49 AM »
if (v27 != 0) {
 if (v28 > 119 &&
     v29 > 124 &&
     v28 < 132 &&
     v29 < 160) {
   write your codes here............
 }
}

Robin Gravel

Offline Allen

Re:AGI Mouse
« Reply #2 on: May 13, 2003, 11:07:46 AM »
Cool, Thanks Robin! :)
« Last Edit: May 13, 2003, 11:23:05 AM by Allen »
http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!

Offline Allen

Re:AGI Mouse
« Reply #3 on: May 13, 2003, 11:23:19 AM »
Uhh... could someone explain how these codes work? ;)
http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!

Offline Brian Provinciano

Re:AGI Mouse
« Reply #4 on: May 13, 2003, 11:36:42 AM »
Look at the files included with the AGI Mouse demos for examples on how to use it. It fully explains everything. Those number are coords. The "v28" and such should be "mouse_x" and "mouse_y" etc. See my files/demo in the zip file.

Offline Allen

Re:AGI Mouse
« Reply #5 on: May 13, 2003, 11:45:29 AM »
Is it possible to have an effect when you click on a moving object?
http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!

Offline Zero

Re:AGI Mouse
« Reply #6 on: May 13, 2003, 02:22:31 PM »
Yep i think so!!!
i almost did something like that with the mouse support
Zero has just programmed a post please read.

Offline Allen

Re:AGI Mouse
« Reply #7 on: May 13, 2003, 02:42:24 PM »
Would the code be...

Code: [Select]
if(mouse_left == 1){
if (mouse_x == ?? && mouse_y == ?? && posn(o1) == ??){
print("Hey guies! Yoo stoped me woking!");
}
}
http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.025 seconds with 17 queries.