variable help

For topics that don't fit under the other topics or forums.

variable help

Postby xonoa » Fri May 07, 2010 12:28 am

how do i get a key to control a variable?
xonoa
 
Posts: 5
Joined: Sun May 02, 2010 4:12 am

Re: variable help

Postby niffirg1 » Fri May 07, 2010 1:58 am

Like Key Binding?
Code: Select all
keys.bind("a"{scene.my.variable=scene.my.variable+1})

I think that is it. That should make scene.my.variable go up everytime you press "A"
Although i usually don't use key binding. (I never really liked it)
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!


Return to Algodoo in general

Who is online

Users browsing this forum: No registered users and 9 guests