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


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
User avatar
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

You can read the entire post

Google Translated:

Some web style are lost with google translator.

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

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


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

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.

User avatar
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: 5612
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest