Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:46 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: restrict movement of draged object for maze type game
PostPosted: June 8th, 2006, 5:08 am 
Offline

Joined: May 18th, 2006, 7:08 pm
Posts: 15
Location: Jericho, Vermont, USA
Is there a w ay to restrict movement of a draged object to a specific path for maze type game?

Thanks for any ideas.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 8th, 2006, 1:26 pm 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi,

Here's a workaround idea, but not using the hard-wired Drag-and-Drop in Opus...

It may take some work, but using script, you could possibly use the "object-to-cursor" action on the specified object to be dragged. In conjunction with IsMousePressed("Left"), which would simulate a dragged object only moving when the left mouse button is held down, and the GetPosition(), you could set the areas on screen where the object would work. A complex workaround indeed though. ;)

Another idea along those lines could be using an object on an Animation Path, i.e. when the mouse cursor is over the object and IsMousePressed("Left") is held down, the object moves along the path in increments, by using a while loop or ticker condition. Someone with better scripting experience may have a better idea.

Hope this helps, if it can be applicable to what you want to do.

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject: Maze. Not a direct answer...
PostPosted: October 17th, 2006, 1:27 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
you may find some hints or techniques outside the multimedia community. Check this link for a java maze.
Please respect any copyrights and use restrictions if any. Source link on page.

http://www.math.com/students/puzzles/ma ... zegen.html


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 38 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