Problems with box text
6 posts • Page 1 of 1
Problems with box text
Can I define for example the Y-Coordinate of an existing object as variable for further usage? (for example for an altimeter or something)
Something Like
Thanks for help
Something Like
- Code: Select all
e.this.pos = [pos1 = pos1, pos2 = scene.myheight]
Thanks for help
Last edited by PlanckBanck on Wed Dec 30, 2009 5:46 pm, edited 1 time in total.
The world is a gas-station, where you`re allowed to smoke. -Friedrich Dürrenmatt
I forgot 2/3 of my scripting knowledge T.T
I forgot 2/3 of my scripting knowledge T.T
-
PlanckBanck - Posts: 48
- Joined: Sun Nov 22, 2009 5:35 pm
- Location: In the Bottoms of Berlin
Re: defining property as variable
yes you can, the format would be this
if you want the x coordinate, it woulf be
e.pos is the coordinates of the object in a matrix , and the 0 and 1 at the end tell which value you want to use in that matrix.
- Code: Select all
scene.my.myheight = e.pos(1)
if you want the x coordinate, it woulf be
- Code: Select all
scene.my.myheight = e.pos(0)
e.pos is the coordinates of the object in a matrix , and the 0 and 1 at the end tell which value you want to use in that matrix.
Last edited by Versieon on Thu Dec 31, 2009 5:12 am, edited 2 times in total.
-
Versieon - Posts: 375
- Joined: Tue Sep 01, 2009 4:45 pm
Re: defining property as variable
Thanks a lot but here`s another question^^:
I want a box to have scene.my.height as text, but when I put {scene.my.height} into the text field in the script menu without the "", it displays it as correct, but then erases it.
I want a box to have scene.my.height as text, but when I put {scene.my.height} into the text field in the script menu without the "", it displays it as correct, but then erases it.
The world is a gas-station, where you`re allowed to smoke. -Friedrich Dürrenmatt
I forgot 2/3 of my scripting knowledge T.T
I forgot 2/3 of my scripting knowledge T.T
-
PlanckBanck - Posts: 48
- Joined: Sun Nov 22, 2009 5:35 pm
- Location: In the Bottoms of Berlin
Re: Problems with box text
wow thanks
The world is a gas-station, where you`re allowed to smoke. -Friedrich Dürrenmatt
I forgot 2/3 of my scripting knowledge T.T
I forgot 2/3 of my scripting knowledge T.T
-
PlanckBanck - Posts: 48
- Joined: Sun Nov 22, 2009 5:35 pm
- Location: In the Bottoms of Berlin
Re: Problems with box text
I also made a little "How To" in the Calculate distance using laser topic:
viewtopic.php?f=13&t=1048#p10474
With it you can display the real height above the ground. If you do it just with one laser you only get the height above the absolute null level (the x-axis of algodoo's coordinate system).
viewtopic.php?f=13&t=1048#p10474
With it you can display the real height above the ground. If you do it just with one laser you only get the height above the absolute null level (the x-axis of algodoo's coordinate system).
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests