Fortis don't make me come over there

Joined: 22 Jun 2003 Posts: 72 Location: Portland
|
Posted: Sun Apr 29, 2007 3:51 am Post subject: Trying to make a looping introduction |
|
|
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 |
|