Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed Jun 19, 2013 12:13 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Key combos and holding
PostPosted: Fri Jul 06, 2012 9:12 pm 
Regular

Joined: Thu Oct 13, 2011 9:11 pm
Posts: 30
Is it possible to check for a combination of keys without doing something like:

Code:
key "A" action SetVariable("a_pressed", True)
key "B" action SetVariable("b_pressed", True)

if a_pressed and b_pressed:
    combo = True


Also, how do I differentiate between a key that is pressed and a key that is held down? Say I have a charging bar; if I want the user to be able to hold down a key to charge, how would I write this?

Thank you for any help :D


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: apricotorange, chewpower


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group