Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 6th, 2025, 10:25 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Drag and Drop for a board game
PostPosted: January 7th, 2005, 1:30 pm 
Offline

Joined: January 7th, 2005, 1:25 pm
Posts: 7
Hi everyone !

This is driving me mad! I have just downloaded the trial version and started to work with Opus.

I have this drag and drop problem:

I want to simulate a board game where black and white stones can be dropped on each other.
So, when a white stone is dropped onto a black stone, the black one shoud disappear. But everytime I try this (tested with several different settings now), the white stone disappears instead of the black one.

And how could I manage it, that the black stone moves to another dropzone (and stays there) after the action discribed above ?

Can someone help ? Or are there any more good tutorials around the web ?

Regards,
Pearl


For this message Pearl_ has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 7th, 2005, 2:02 pm 
Offline

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

Thank you for your enquiry.

This should be possible. Please try the following procedure:

- Create a blank new publication
- Create the white and black objects as required
- Once created, open the properties of the 'White Stone' and select the Drag and Drop tab
- Enable the This object can be dragged option, but leave the other options disabled
- Now open the properties of the 'Black Stone' and select the Drag and Drop tab
- Enable the This object can have other objects dropped onto it option
- Select these selected objects only and tick the box next to the White Stone object
- If you want to be able to drag the White Stone after it has been dropped, enable the Objects can be dragged off once dropped option
- Now open the actions for the Black Stone object and open the Drag & Drop group of triggers
- Apply an Object Dropped trigger and tick the box next to the White Stone object
- Open the General group of actions
- Apply a Hide action and tick the box next to the Black Stone object
- Click Apply and OK
- Now preview the publication and drag the White Stone onto the Black Stone. The Black Stone should disappear

I have also provided below a link to download an example of the above.

I hope this helps. Please do not hesitate to contact me if you have any further queries.

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: January 7th, 2005, 2:26 pm 
Offline

Joined: January 7th, 2005, 1:25 pm
Posts: 7
Hi Robin and thanks for you help so far !

I am trying so sell a board game to a german publisher and therfore I need this inteactive demo. And I love Opus for what it can do. I hope to solve this problem !

First: Thanx ! This tip helped me a lot in understanding the actions of Opus!
But my "boardgame situation" is a bit different. While your exaple works perfect for two stones, I need to have this for a lot of stones.
My game is similar to the board game called "Dame" (in German... sorry, I donĀ“t know the english name of this. But I have attached an image below).

What I would need is something like this:

Every white stone can...

1. be dropped on every black stone
2. not be dropped on any white stone
3. make any black stone disappear when dropped

(and viseversa for black stones of course!)

I think your example works, because the black stone is able to get dropped by only ONE object named "white stone". But as I have mentioned... I have a lot of them :-)

I did a quick drawing below to show you my situation.
Maybe you have one more tip for me to solve this ?
Can this be done by programming variables ?

I am looking forward to hear from you !


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


For this message Pearl_ has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 7th, 2005, 3:21 pm 
Offline

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

Please find attached a modified version of my original publication which now features 12 white stones, 12 black stones and a chessboard background. Each white stone is set to be draggable and to allow any of the 12 black stones to be dropped onto it. Each black stone is also draggable and allows any of the 12 white stones to be dropped onto it.

I have then applied an Object Dropped action to all 12 white stones which detects whether one of the 12 black stones has been dropped. If so, a Hide action is triggered which hides the current white stone. I have then repeated these actions for all 12 black stones, but these are set to detect whether a white stone has dropped before hiding themselves.

I am vaguely familiar with the game you are trying to reproduce and suspect that a lot more logic will need to programmed into this publication. For example, there is currently no way of limiting which squares the objects can be placed or determining the end of a turn. However, I hope this helps resolve your initial query.

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: January 7th, 2005, 3:38 pm 
Offline

Joined: January 7th, 2005, 1:25 pm
Posts: 7
Fantastic Robin ! Thank you very much !

It helps me a lot to understand the logic of Opus !

There is no need for me to define which field can be used by the stones, because this should only simulate a two player game, played by two people.
The only function I have needed was the disappearing of the white / black stones !

Thanks again ! Keep up the good work !

Regards,
Pearl


For this message Pearl_ has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

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