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

Trying to make a looping introduction

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Fortis
don't make me come over there




Joined: 22 Jun 2003
Posts: 72
Location: Portland

PostPosted: Sun Apr 29, 2007 3:51 am    Post subject: Trying to make a looping introduction Reply with quote

As I've mentioned before (in my "preventing quit" thread), I'm making a short game that will run on a PC attached to a TV at my school's gallery showing of my comic art senior project. Since this is going to be running in a public space, I thought it would be neat to have an "attract" type thing that looped an animated title screen and a Zelda 1 style backstory of scrolling text.

The desired functionality here is that as soon as Enter is pressed, the intro stops and goes to the game. Since this doesn't happen I can only assume I'm doing something wrong. How can I make the looping intro stop as soon as the player presses enter?

Code:

script, Introduction, begin
suspend player
set variable (KnightLV,1)
set variable (WitchLV,1)
set variable (RangerLV,1)
wait
while (key is pressed (28)==false) do ( #looping intro
   fade screen in
   wait
   show backdrop (1)
   wait (8)
   show backdrop (10)
   wait (8)
   show backdrop (1)
   wait (8)
   show backdrop (10)
   wait (8)
   show backdrop (1)
   wait (8)
   show backdrop (10)
   wait (8)
   show backdrop (1)
   wait (8)
   show backdrop (10)
   wait (8)
   show backdrop (1)
   wait (8)
   show backdrop (10)
   wait (8)
   show backdrop (1)
   wait (8)
   show backdrop (10)
   wait (18)
   fade screen out
   wait
   show map
   wait
   fade screen in
   wait
   pan camera (down, 30,1)
   wait
   wait for camera
   wait (30)
   fade screen out
   wait
   camera follows hero (me)
   teleport to map (5,6,0)
   wait
)
fade screen out #begin game, opening scene etc
wait
tweak palette (-63,-63,-63)
wait (15)
teleport to map (4, 7, 37)
wait
add hero (hero: witch)
force equip (find hero (hero: knight), slot: armor, item: hero)
force equip (find hero (hero: witch), slot: armor, item: magic)
walk hero (hero: witch, down, 1)
set hero direction (hero: witch, up)
wait for hero (hero:witch)
wait (15)
put camera (7,5)
wait for camera
reset palette
fade screen in
wait for all
focus camera (7, 37, 2)
wait for camera
wait (15)
camera follows hero (me)
walk hero to x (me, 7)
walk hero to y (me, 24)
wait for hero (me)
use door (0)
show text box (1)
wait for text box
resume player
end

_________________
ARRRR, GLADYS! CHALK IT, DON'T PLEASURE IT
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Sun Apr 29, 2007 8:18 am    Post subject: Reply with quote

See my LJ reply. For anyone else curious, you need to check for enter every time you wait, not just when it loops.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
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