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

Speed Up Script!

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Fri Jul 25, 2003 11:49 pm    Post subject: Speed Up Script! Reply with quote

Is there a way to plotscript to make the hero run faster for a short period of time? Like through a script you know, where the game takes control of the character? Because that could come in handy somewhere along the line in my game I am working on now.
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Sat Jul 26, 2003 12:03 am    Post subject: Reply with quote

Code:
set hero speed (me,10)


Just change it back to:

Code:
set hero speed (me,4)


when you're done!
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Cube
Dimensional Traveller




Joined: 02 Feb 2003
Posts: 294

PostPosted: Sat Jul 26, 2003 12:08 am    Post subject: Reply with quote

Yeah:

set hero speed (me, speed)

Now, I'm not sure what you mean by "a short period of time". You could mean for the duration of a script, or until something else is activated, or for a specific number of seconds.

If it's for the duration of the script, you'd just set the hero speed to a higher number at the very beginning of the script, and back to the walking speed at the end.

If something needs to be activated, just make 2 scripts where one increases the speed at the beginning of the event, and then another which returns the speed to normal when the event is complete.

If it's for a specific number of seconds, you'd just use a wait command in a single script. At the beginning of the script, you'd increase the speed, add a wait command in there somewhere (I found that waiting 17 or 18 ticks is about a second on my computer (I think... I can't remember all too much Oookay...)).

Or if it's something completely different, just let me know, heh.
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