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

If you stop...YOU DIE

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Tsunamidog
banned...but not really.




Joined: 14 Sep 2004
Posts: 330
Location: right behind you....

PostPosted: Wed Oct 05, 2005 4:23 pm    Post subject: If you stop...YOU DIE Reply with quote

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
View user's profile Send private message
SilentAngel
The Angel of Silence




Joined: 16 Dec 2003
Posts: 122
Location: The comfiest chair in #CastleParadox

PostPosted: Wed Oct 05, 2005 10:59 pm    Post subject: Reply with quote

Are you talking about the NPC of your hero or not? XD. 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
View user's profile Send private message
Raekuul
Delicious!




Joined: 31 Mar 2004
Posts: 641
Location: Nowhere

PostPosted: Thu Oct 06, 2005 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



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

PostPosted: Thu Oct 06, 2005 9:04 am    Post subject: Reply with quote

That wouldn't lag it.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
tgfcoder




Joined: 14 Oct 2005
Posts: 37
Location: Australia

PostPosted: Sat Oct 15, 2005 1:19 pm    Post subject: Hmm Reply with quote

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. Happy

EDIT: Forgot the code tags. Ug-ly.
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