Pieces change type too fast to be seen. Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Pieces change type too fast to be seen. « Previous Next »

Author Message
Mohamed El Mokhtar Messaoudi (Dumberbytheminute)
New member
Username: Dumberbytheminute

Post Number: 5
Registered: 11-2008
Posted on Saturday, November 28, 2009 - 11:51 am:   

Hi. I am designing a game where a piece may change type (, but not owner). It works, but it is hard to see which piece just changed type without turning on sound and continually checking game moves list. I suspect there could be a simple way to code for some image to appear briefly before being replaced by the piece of new type (using a dummy piece, say). I couldn't find it, though. Any help appreciated. Thanks.
Greg Schmidt (Gschmidt2)
New member
Username: Gschmidt2

Post Number: 119
Registered: 1-2007
Posted on Saturday, November 28, 2009 - 1:25 pm:   

Instead of using change type you could use a drop or a capture. You would also use the option keyword to turn on animation for drop/capture whichever is appropriate. Perhaps not an ideal solution, but a solution nonetheless.

-- Greg
M Winther (Kalroten)
New member
Username: Kalroten

Post Number: 133
Registered: 1-2007
Posted on Sunday, November 29, 2009 - 11:18 am:   

You could use change-type intermediate-piece and then capture. In this way the intermediate-piece will signal change type when it moves off screen.
/Mats
Mohamed El Mokhtar Messaoudi (Dumberbytheminute)
New member
Username: Dumberbytheminute

Post Number: 6
Registered: 11-2008
Posted on Sunday, November 29, 2009 - 2:50 pm:   

Thanks, guys. 'Will try both suggestions. Cheers.
Mohamed El Mokhtar Messaoudi (Dumberbytheminute)
New member
Username: Dumberbytheminute

Post Number: 7
Registered: 11-2008
Posted on Monday, November 30, 2009 - 2:32 pm:   

Neither sugestion worked. The standard Zog routine is
(define flip-it
(to (add something)))
I tried lots of things to elaborate on that; either ZoG presents me with a window asking for further action, or the piece is simply captured, period. Could you please provide a code snippet that would do the works? Thanks.
Karl Scherer (Karl)
New member
Username: Karl

Post Number: 382
Registered: 9-2000
Posted on Saturday, January 23, 2010 - 1:10 pm:   

Hi Mohamed,
a simple way to highlight a special position
(in your case a position where a piece has changed type) is to create two little markers at the border of your game.
See my game COLDICE for an example how to do this.
Cheers, Karl

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: