Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 11th, 2025, 11:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: setting boundaries in move vector to cursor
PostPosted: April 1st, 2005, 10:50 am 
Offline

Joined: November 27th, 2004, 12:35 am
Posts: 19
Location: London and Cambridge UK
Opus: Opus pro 9
OS: Windows 7
I'd like a little help please.

I'm writing some programs to help develop control in using a mouse for our students (who have learning difficulties and cerebral palsy)
I've recently "discovered" the move vector to cursor action which opens up many more possibilities.

Things like moving an object through a maze or a path (starting with a simple tube)

I can obviously use the collision routines to play a sound if the object/cursor moves out of it's path

What would help is a simple way of not allowing the object/cursor to move over an object so I could set some solid boundaries.
So at the easy levels the movement of the cursor/object would be forced.

I hope I've explained that well enough.

Richard Walter
Meldreth Manor School


For this message Richard Walter has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 6th, 2005, 10:04 am 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

I'm not sure if I fully understand your requirements, but I assume you are trying to create a wire and loop-type game where the dragged object has to stay within a particular path and touching the boundary of the path sets the object back to the start?

If so, I would recommend using looped script actions to control the dragging and releasing of the object. You can then build up the 'walls' of the path using frames with Collision Enter triggers applied that return the object to the start position when collision is detected.

I have attached a sample publication which demonstrates this. Please let me know if you need any extra functionality or if this example does not match your intended publication.

Kind regards,


You do not have the required permissions to view the files attached to this post.

_________________
Robin Garrett
Digital Workshop Technical Support


For this message Robin Garrett has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 14th, 2005, 4:06 pm 
Offline

Joined: November 27th, 2004, 12:35 am
Posts: 19
Location: London and Cambridge UK
Opus: Opus pro 9
OS: Windows 7
Thanks Robin
Yes almost, but even simpler than a wire and loop type game.

I'm trying to write a series of mouse controlled activities.

First move the mouse pointer up or down, left and right.
Second move the mouse pointer to an object on screen
third move the mouse pointer in along a path.

I can obviously do the first two with simple collision triggers
The movement along a path requires the task to be split into simpler parts for our pupils.

As part of the development in specific mouse control activities I wanted a simpler level where the mouse cursor/object could not move beyond a path, so it would have to stay in the path.
So rather than reseting the object back to the beginning it would not allow it to enter, or it would bounce off.

Thanks again your example has given me some ideas with which to work on.

Richard Walter


For this message Richard Walter has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 16th, 2005, 3:13 pm 
Offline

Joined: November 27th, 2004, 12:35 am
Posts: 19
Location: London and Cambridge UK
Opus: Opus pro 9
OS: Windows 7
Done it.
I was trying to use a script action to bounce the moving object off the walls, I couldn't get the script action to work.
But a simple animation command to move the object up (ubout 20) on collision with the bottom wall works well (or up/left/right as appropriate).

Mind you I haven't cracked the move object to cursor yet, so our students will either have to hold down the mouse button to drag the ball, or I'll use some dwell latching software.

I include a simple example

Richard Walter
Meldreth Manor School


You do not have the required permissions to view the files attached to this post.


For this message Richard Walter has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2005, 3:23 pm 
Offline

Joined: November 28th, 2004, 6:05 am
Posts: 141
Location: USA
move object to cursor example :-)


You do not have the required permissions to view the files attached to this post.

_________________
Opus Resources and Services


For this message Chris Jones has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: a maze example...
PostPosted: April 19th, 2005, 4:31 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
Enjoyed extending the file given.


You do not have the required permissions to view the files attached to this post.


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2005, 9:44 pm 
Offline

Joined: November 27th, 2004, 12:35 am
Posts: 19
Location: London and Cambridge UK
Opus: Opus pro 9
OS: Windows 7
re move object to cursor
Goodness Chris how do you manage that ?!

I've looked at your script and I'm still none the wiser....

Anyhow thanks,
I've already started to make a set of mouse controled activities using your coding, although I've really no idea how or why it works.

It's a great deal easier now I don't have to bother with mouse dwell software.

Thanks
Richard Walter


For this message Richard Walter has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: April 19th, 2005, 10:38 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
Hope Chris doesn't mind, have added a small wait in the maze sample...
:D
Thanks Chris....


You do not have the required permissions to view the files attached to this post.


For this message eomc40 has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group