Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

What's wrong with this?

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
MADSOFT Games
Representing more than 80% of the internet!




Joined: 06 Nov 2004
Posts: 221
Location: AWESOME land

PostPosted: Sat Nov 18, 2006 11:15 pm    Post subject: What's wrong with this? Reply with quote

This is part of the script for Drums OHR, and it's not working, at some point it almost did, (it played the sound and showed the image, but only once and didn't work ever again, I tried recompiling and reimporting, but nothing works...
Here's the script, basically it's all repeated 12 times (one for each Drum sound):

Quote:
Script,drums,begin
if (Key is pressed (31))
then,
(
show backdrop (2)
Play song (2)
Wait (5)
Stop song
Show map
)
end


It's not like it's such a complicated script, help plz?
_________________
http://www.madsoftgames.net/
http://www.madsoftgames.org/
http://www.andrewdavid.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sun Nov 19, 2006 4:46 pm    Post subject: Reply with quote

So, do you mean you have 32 if(keyispressed) blocks, each with a different sound and backdrop and none of them work? Do you have it set to the onkeypress script?

Could you explain what happens when you run it? Nothing at all?
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Camdog




Joined: 08 Aug 2003
Posts: 606

PostPosted: Sun Nov 19, 2006 9:20 pm    Post subject: Reply with quote

It could be that you need a while loop in it. I assume you're calling this from another script (as a bunch of scripts can't be assigned to the same "special" plotscript function, like onkeypress). Does that script call this script continuously in aloop? As it stands now, the script will check to see if the key is pressed exactly once, play the sounds and show the backdrop if it is, do nothing if not, and promptly stop and never check for keypresses again.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group