Key bind No repeat
6 posts • Page 1 of 1
Key bind No repeat
i'm trying to setup some key bindings
this is what i have sofar
Scene.my.height = 4;
Keys.bind("a",{Scene.my.height = Scene.my.height + 0.05});
Keys.bind("z",{Scene.my.height = Scene.my.height - 0.05});
this i working but its not Continuous Motion.
if i keep A or Z pressed then it wont keep on adding or substracting
pls help
this is what i have sofar
Scene.my.height = 4;
Keys.bind("a",{Scene.my.height = Scene.my.height + 0.05});
Keys.bind("z",{Scene.my.height = Scene.my.height - 0.05});
this i working but its not Continuous Motion.
if i keep A or Z pressed then it wont keep on adding or substracting
pls help
- frisk.nl
- Posts: 3
- Joined: Mon May 31, 2010 6:17 pm
Re: Key bind No repeat
just use a circle with a hinge on the edge of it to spin and hit a box with the code you want in the oncollide.
ps. the motor strength will have to be a high value
ps. the motor strength will have to be a high value
When asking for help, READ THE STICKIES!
- electronicboy
- Posts: 1694
- Joined: Mon Aug 31, 2009 6:18 pm
Re: Key bind No repeat
If you use Algodoo you could better use a laser base.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
-
Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: Key bind No repeat
frisk.nl wrote:i'm trying to setup some key bindings
pls help
Unfortunately, key binding not saving with scene, so you can't share it.
We cursed to use collision or laser triggers...
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Key bind No repeat
can you give me an example or if link a tutorial how to do it
- frisk.nl
- Posts: 3
- Joined: Mon May 31, 2010 6:17 pm
Re: Key bind No repeat
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 24 guests