View previous topic :: View next topic |
Author |
Message |
Tsunamidog banned...but not really.

Joined: 14 Sep 2004 Posts: 330 Location: right behind you....
|
Posted: Wed Oct 05, 2005 4:23 pm Post subject: If you stop...YOU DIE |
|
|
Is there a way where like if you stop moving foward, or if you stop so many times, you die. I think something like that was in Purgatory I think. But I've tryed numerouse things, and they haven't worked. _________________ The Following Statement is True.
The Above Statement Is False |
|
Back to top |
|
 |
SilentAngel The Angel of Silence

Joined: 16 Dec 2003 Posts: 122 Location: The comfiest chair in #CastleParadox
|
Posted: Wed Oct 05, 2005 10:59 pm Post subject: |
|
|
Are you talking about the NPC of your hero or not? . I'm sure this could be done with plotscripting of some sort, perhaps checking the "key is pressed=up" or similar.
If not, I can't think right now what you could do...heh _________________ Current Projects:
Hikari no Senshi - Inperiaru Taisen: ~10% Complete
http://www.castleparadox.com/forum/download.php?game=392
Stepmania Online Stats:
Next song to pass on Stepmania: Paranoia Survivor Max (Heavy)
Next song to pass on DDR: MaxX Unlimited(Standard)
|
|
Back to top |
|
 |
Raekuul Delicious!

Joined: 31 Mar 2004 Posts: 641 Location: Nowhere
|
Posted: Thu Oct 06, 2005 8:54 am Post subject: |
|
|
There'd be too much lag in a keyispressed... considering that a while loop would be needed for it. _________________ A broken clock is still right twice a day. |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Thu Oct 06, 2005 9:04 am Post subject: |
|
|
That wouldn't lag it. _________________
|
|
Back to top |
|
 |
tgfcoder
Joined: 14 Oct 2005 Posts: 37 Location: Australia
|
Posted: Sat Oct 15, 2005 1:19 pm Post subject: Hmm |
|
|
The only thing I can think of is to start the script when you enter the map (or touch something, whatever).
The script might look something like this:
Code: |
script, timebomb, (
set tag(TEHFLAG,1)
variable (time)
set variable (time, 0)
while (check tag(TEHFLAG))
do (
wait ()
if (key is pressed (upkey) == 0)
then (
increment (time, 1)
)
else (
set variable (time, 0)
)
if (time >= 15)
then (
set tag(TEHFLAG,0)
game over
)
)
)
|
TEHFLAG will be 0 if the timebomb is off, 1 if it's on.
If there's a will, theres a way.. Not always in programming though.
EDIT: Forgot the code tags. Ug-ly. |
|
Back to top |
|
 |
|