Hey y'all, Acmeman here. I'm having trouble with a script. What I want to happen is this: The player goes into his suite and by the bed, a hud comes up that says "press enter". When the player presses enter, the level would fade out, or in this case, win the level. I tried looking at this thread:
http://forum.thegamecreators.com/?m=forum_view&t=182314&b=23
The hud part seems to work for me, but every time I put my win zone in a test level, it doesn't give me the option to actually press enter, it just fades out right then and there. Here is my script:
;Artificial Intelligence Script
;Header
desc = Press Enter to win level
;Triggers
:state=0:scancodekeypressed=28
:state=0,plrwithinzone=1:activateallinzone=1,sound=$0,state=1
:state=0:hudreset,hudx=50,hudy=63,hudimagefine=gamecore\huds\joshcustom\letter.png,hudname=letter,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:sound=$0,hudshow=letter,state=2
:state=2,plrwithinzone=0:hudfadeout=letter,destroy
Can someone please help? BlackFox wasn't specific enough as to where to put "scancodeskeypressed=28" in the script. :/
Swag syndrome-Harmful disease that is spread through music, TV, and media. Subjects of swag syndrome try their hardest to imitate celebrities and live their lives as if they are rich and famous.