Scene.camera.follow?

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

Scene.camera.follow?

Postby Wild Bill » Thu Jan 20, 2011 11:38 pm

I am spawning an object and I want the camera to follow it. I have tried Scene.camera.follow:=true and a few other things with no luck. I have also searched the forum but no luck there either. Is there a code for this? TIA
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm

Re: Scene.camera.follow?

Postby electronicboy » Thu Jan 20, 2011 11:57 pm

algodoo saves the object that is being tracked by using a group

Code: Select all
Scene.addGroup {
    name := "tracked";
    entityIDs := [107]
};


so, unless you can edit group and grab the entity id of the object you want to follow, you might have to find a mechanical way of doing it.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: Scene.camera.follow?

Postby Wild Bill » Fri Jan 21, 2011 1:01 am

Thanks, I may be able to use that.
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm

Re: Scene.camera.follow?

Postby Someone Else » Fri Jan 21, 2011 5:55 pm

If he is spawning an object that he wants the camera to follow, then wouldn't he be able to make the entityID whatever he wants? And then spawn that group within the same script? As in...
Code: Select all
Scene.addCircle {
    entityID := 107
};
Scene.addGroup {
    name := "tracked";
    entityIDs := [107]
};

Maybe?
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Scene.camera.follow?

Postby Wild Bill » Fri Jan 21, 2011 6:58 pm

Actually I have tried the Scene.addGroup, entity id number and a lot of other things and nothing has worked so far. I will try more later but thanks for the help anyways.
User avatar
Wild Bill
 
Posts: 129
Joined: Mon Aug 31, 2009 5:50 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 2 guests