Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 20th, 2024, 4:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Drag and drop task help please
PostPosted: January 3rd, 2008, 11:59 am 
Offline

Joined: May 17th, 2007, 9:26 am
Posts: 35
Hi,

I am creating a single page activity where the user drags parts of a skeleton onto an outline of a body.

What I would like is for each part to snap to it's correct position if it is dropped close enough, but to return if it is incorrect. I have set up the outline as a drop zone, but the snap function simply snaps all the body parts to the middle.

Is there a simple way to ensure that each part will snap into the correct place, or am I going to have to slice the outline into separate parts and have each part as a drop zone? There are 17 parts to my skeleton and so it could be a long job!

Also this task will be timed. I have worked out how to start, stop and display the clock, but it always displays hours minutes and seconds. This task is unlikely to take much over a minute and so I would really like to not have any display for hours. Is it possible to remove these from the display? Would my only option be a mask of some sort?

Sorry for 2 questions in one, but hopefully they are not too taxing :)

Many thanks for any advice

RB


Top
 Profile  
 
 Post subject:
PostPosted: January 3rd, 2008, 12:24 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
I would layout the pieces as if I was making a drag and drop puzzle using png pictures pieces. Search the forum for puzzle, the following link will get you started.
viewtopic.php?t=2243&highlight=puzzle

See the attached for imp file showing setting the minutes and seconds.


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

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 3rd, 2008, 1:03 pm 
Offline

Joined: May 17th, 2007, 9:26 am
Posts: 35
Hi Leo,

many thanks for the very quick reply. The puzzle solution will work perfectly, it'll take a little while to get the pieces in exactly the right place, but it still seems the neatest solution.

Your time solution also works but it had me stumped. I was trying to do the same thing as you did, i.e. editing the start clock format, but each time I simply highlighted and cut the [hh] bit the apply button was greyed out and the changes wouldn't take.

I have now realised that I have to type the entire format code in from scratch and it works perfectly.

Thanks again for your help, it is much appreciated.

RB


Top
 Profile  
 
 Post subject:
PostPosted: January 3rd, 2008, 6:40 pm 
Offline

Joined: April 11th, 2005, 2:31 pm
Posts: 122
Location: Edinburgh
I created a similar publication a while back and have attached the imp file and resources. I have uploaded a Flex version here:

http://ictstuff.info/opus/body_parts.htm


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

_________________
Windows 7 Ultimate (32 bit)
Opus Pro 6.4, Opus 7
Dual Core Athlon 64 4000+
4 gb Ram


Top
 Profile  
 
 Post subject:
PostPosted: January 3rd, 2008, 11:44 pm 
Offline

Joined: May 17th, 2007, 9:26 am
Posts: 35
Thanks David, that's a cute little publication, similar to what I am doing. Thanks for your help.

RB


Top
 Profile  
 
 Post subject:
PostPosted: January 4th, 2008, 2:13 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
RB,

In case the other approaches didn't include this, take a look at the command GetDisplayData(), in the help files. Seems like that would allow you to construct a fully finished model, Hide() it, and then use that info for positioning duplicate objs.

Probably could also "pick up" correct Rotation angle, calculate a zone of success (say percentage diff. for coords relative to obj size), etc.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: January 8th, 2008, 5:36 pm 
Offline

Joined: May 17th, 2007, 9:26 am
Posts: 35
I have got that page working as I wished, but thanks for this Lar, I will look into it.

RB


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

All times are UTC [ DST ]


Who is online

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