Spawning Longer Boxes
3 posts • Page 1 of 1
Spawning Longer Boxes
Hello, I just had a question. I am in the middle of making a game, that takes place on a sky rail, but I'm not going to get into that. I just wanted to know how to spawn longer boxes. I'm fairly advanced with scripting, so it shouldn't be hard to explain. Normally when you spawn a box, it is square. I want to know how to spawn it as a rectangle. Just wondering if anyone could help. Thanks.
- TheDudeFromCI
- Posts: 2
- Joined: Mon Sep 26, 2011 2:16 am
Re: Spawning Longer Boxes
Hi!
You shoulduse the size tag:
To discover all tags simply copy (ctrl+c) an existing object and paste it to script menu or an external text editor.
Here is an example of how it looks:
You shoulduse the size tag:
- Code: Select all
Scene.addBox({size := [X, Y];})
To discover all tags simply copy (ctrl+c) an existing object and paste it to script menu or an external text editor.
Here is an example of how it looks:
- Code: Select all
// FileVersion 18
// Phunlet created by Algodoo demo v2.0.0 RC1
FileInfo -> {version = 18};
Scene.addBox {
collideWater := true;
color := [0.48941478, 0.52742594, 0.90960538, 1];
onCollide := (e)=>{};
attraction := 0;
controllerAcc := 11;
onHitByLaser := (e)=>{};
heteroCollide := false;
immortal := false;
opaqueBorders := true;
refractiveIndex := 1.5;
killer := false;
text := "";
friction := 0.5;
materialName := "";
restitution := 0.5;
drawBorder := true;
controllerInvertX := false;
controllerInvertY := false;
textFont := "Verdana";
edgeBlur := 0;
textFontSize := 32;
controllerReverseXY := false;
resistivity := +inf;
ruler := false;
airFrictionMult := 1;
showVelocity := false;
density := 2;
textConstrained := true;
textureClamped := [false, false];
reflectiveness := 1;
textColor := [1, 1, 1, 1];
showMomentum := false;
textureMatrix := [1, 0, 0, 0, 1, 0, 0, 0, 1];
texture := "";
inertiaMultiplier := 1;
showForceArrows := false;
collideSet := 1;
materialVelocity := 0;
attractionType := 2;
textScale := 0.5;
entityID := 291;
zDepth := 5.;
layer := 0;
geomID := 204;
pos := [1, 4.5];
angle := 0;
size := [2, 1]
}
-

Ivan - Posts: 203
- Joined: Tue Oct 06, 2009 2:01 pm
- Location: Croatia
Re: Spawning Longer Boxes
Ah! Thank you, that helps a lot.
- TheDudeFromCI
- Posts: 2
- Joined: Mon Sep 26, 2011 2:16 am
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests



