Spawning an object with controller buttons set

About advanced scenes, and the Thyme scripting language used in Algodoo.

Spawning an object with controller buttons set

Postby Ian151 » Sat Sep 05, 2009 1:44 am

Can you spawn an object with controller buttons set? I have 2 boxes that will spawn, and I managed to also fixate them together on the spawn, but I need them to use the arrowkeys or WASD when they spawn, otherwise is there a way to do it in oncollide?
"THE BEST 2 PLAYER SCENE EVER MADE!!!" - ianno
http://www.algodoo.com/algobox/details.php?id=24204
Image
User avatar
Ian151
 
Posts: 47
Joined: Tue Sep 01, 2009 12:02 am

Re: Spawning an object with controller buttons set

Postby pixartist » Sat Sep 05, 2009 1:25 pm

Code: Select all
// Phunlet created by Algodoo v1.6.0

Scene.addBox {
    color = [0.64268374, 0.8225548, 0.9378946, 1.0];
    entityID = 1284;
    zDepth = 100.0;
    geomID = 4425738;
    pos = [16.5, 4.5];
    angle = 0.0;
    forceController = "keys w d s a";
    size = [1.0, 1.0]
}
Image
pixartist
 
Posts: 65
Joined: Wed Sep 02, 2009 5:30 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 9 guests

cron