How is this done?
3 posts • Page 1 of 1
How is this done?
I am learning as much as I can about Algodoo scenes, and one way of doing that is by loading and disecting other people's scenes. One such scene that has me stumped is called Space Arcade (by Nxdt).
He has created a "pseudo-3D" artificial horizon which gives the impression that the player is flying through space toward a perspective vanishing point. The effect is quite impressive! Now, the scene that I attached to this post, has been greatly modified by me, and therefore it doesn't look anything like the original scene, but I wanted to delete everything except for this one clever function that I have not been able to figure out how it's done. If you run the attached file, you will see horizontal lines spawning out of nothing! They get pulled down by gravity, but even if I stop the animation and delete everything that I can see, when I start the animation again, lines continue to get spawned. I could not find any Thyme script that is generating those lines. Could someone please take a look at this scene and tell me how it was done? Thanks!
He has created a "pseudo-3D" artificial horizon which gives the impression that the player is flying through space toward a perspective vanishing point. The effect is quite impressive! Now, the scene that I attached to this post, has been greatly modified by me, and therefore it doesn't look anything like the original scene, but I wanted to delete everything except for this one clever function that I have not been able to figure out how it's done. If you run the attached file, you will see horizontal lines spawning out of nothing! They get pulled down by gravity, but even if I stop the animation and delete everything that I can see, when I start the animation again, lines continue to get spawned. I could not find any Thyme script that is generating those lines. Could someone please take a look at this scene and tell me how it was done? Thanks!
-
Xray - Posts: 500
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
Re: How is this done?
Thanks for the pm.
I used a box with the thyme spawn code and circle with off centre hinge to bump into it regularly. This mechanism was made very small, invisible and placed far from the main area of the scene, this is why you couldn't find it.
the code looks something like this;
This is the only thyme used in this scene, and i've attached a quick scene showing what I did.
I used a box with the thyme spawn code and circle with off centre hinge to bump into it regularly. This mechanism was made very small, invisible and placed far from the main area of the scene, this is why you couldn't find it.
the code looks something like this;
- Code: Select all
(e)=>{
Scene.addBox({
[select the object you want to spawn and press ctrl-c, this copys the object exactly in text form, then highlight this bit of text and hit ctrl-v]
})
}
This is the only thyme used in this scene, and i've attached a quick scene showing what I did.
-
Nxdt - Posts: 1019
- Joined: Mon Aug 31, 2009 6:32 pm
- Location: Scotland!
Re: How is this done?
Hi Nxdt --
I'll say it again.... VERY CLEVER!
Thanks for the explanation, and thanks for the scene that demonstrates it. Now I'll be able to sleep at night!
Xray
I'll say it again.... VERY CLEVER!
Thanks for the explanation, and thanks for the scene that demonstrates it. Now I'll be able to sleep at night!
Xray
-
Xray - Posts: 500
- Joined: Sun Jun 17, 2012 6:12 am
- Location: USA
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests