Source language: Translate to:

Two parallel mouse pointers

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Two parallel mouse pointers

Postby smartmedia » Sat Aug 14, 2010 5:05 am

Hi..

I start creating a game from where the user compares 2 photos and finds the differences between them. The logic is simple and i created a simple demo demonstrate the use. My problem is that i want to show 2 parallel mouse pointers, 1 one the left photo and 1 on the right photo moving parallel. I want to ask if this is possible through NB.

You can check the demo here
http://dl.dropbox.com/u/8766047/compare.exe
User avatar
smartmedia
 
Posts: 889
Joined: Fri Apr 01, 2005 6:50 am
Location: Hellas

Postby bunker » Sat Aug 14, 2010 10:01 am

Hi smartmedia I make a example you can download from http://www.neobookeros.com.ar/?dl_id=42

You can read the entire post

http://www.neobookeros.com.ar/?p=277

Google Translated:

http://translate.google.com.ar/translate?u=http%3A%2F%2Fwww.neobookeros.com.ar%2F%3Fp%3D277&sl=es&tl=en&hl=&ie=UTF-8

Some web style are lost with google translator.

Greetings
User avatar
bunker
 
Posts: 141
Joined: Sat Sep 29, 2007 4:00 pm

Postby smartmedia » Sat Aug 14, 2010 10:47 am

Hi..

Thanks man, you made terrific job. I will use it to see how will interact with the rest of project. Thanks again.

Later:
Well i added the function but i am facing a problem. In order to isolate the area of the difference from the rest area of photo i use a polygon above the photo, so when the user press left click above that point, the code inside the polygon is fired. The problem is that when i add some code into Mouse Enter action of polygon is running only once and not continuing as Image object does.

That makes me thing that something isn't right.
Normally Mouse enter action is fired when the mouse enters the object.
Question: What is the normal behavior ? to run continuing or once..???
I guess the normal is to run once. That means you must have one other action to fired when the Mouse is moving inside the object.

My conclusion is the polygon is playing right but not the Image object. On the other hand, in this case Image object supports my purpose but in principal logic isn't.
So Dave i think must change the behavior of those object they run the code more than once in Mouse enter action. Also you must add one more action in objects when the mouse is moving inside them to run continually.

I so guess i must find one other way to accomplish that.

Thanks
User avatar
smartmedia
 
Posts: 889
Joined: Fri Apr 01, 2005 6:50 am
Location: Hellas

Postby Neosoft Support » Mon Aug 16, 2010 10:14 am

By design, the mouse enter action is triggered only once as the pointer enters the object. (Mouse exit is triggered when the pointer leaves the object.) Bunker's example uses a timer to execute additional events as the mouse is moved within the picture.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5603
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to NeoBook Action Commands

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest