Collideset Recording Problem (Solved)

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

Collideset Recording Problem (Solved)

Postby FruitMonger » Sun Aug 29, 2010 9:34 pm

So here's the story. I plan on getting Algodoo soon, cause of the "back to school" discount, and I was wondering if you can record an object's collideset in a custom variable with an OnHitByLaser script. I'm planning on making a missile or rocket launcher with an attractive ball on the missile (And no, I don't mean a sexy ball...weirdos :lol: ), and I want to be able to record the collideset of an object in a custom variable, add 64 to that, (Group G) and then the missile just tracks that object because of its G collideset. And if you can do all that, what would the recording script be? I think I already know how to do the rest of the stuff I need to do, but I just can't think of a way to get the object's colliset recorded. Thanks for any feedback, y'alls!
Last edited by FruitMonger on Tue Aug 31, 2010 12:25 am, edited 1 time in total.
Image
User avatar
FruitMonger
 
Posts: 135
Joined: Thu Dec 10, 2009 8:20 pm
Location: Some fruit stand in Indiana

Re: Collideset Recording Problem

Postby kilebantick » Mon Aug 30, 2010 1:31 am

(e)=>{scene.my.x = e.other.collideset}

That's for recording the collideset in a scene.my variable. Hope it works for you :)
Image
User avatar
kilebantick
 
Posts: 1267
Joined: Tue Sep 01, 2009 9:50 am

Re: Collideset Recording Problem

Postby FruitMonger » Mon Aug 30, 2010 5:19 am

Okay then, thank you very much! I can't believe I didn't think of that :roll: . I really gotta try stuff out before I post questions in the forums from now on...
Image
User avatar
FruitMonger
 
Posts: 135
Joined: Thu Dec 10, 2009 8:20 pm
Location: Some fruit stand in Indiana

Re: Collideset Recording Problem

Postby kilebantick » Mon Aug 30, 2010 5:28 am

T'sall good :)
Image
User avatar
kilebantick
 
Posts: 1267
Joined: Tue Sep 01, 2009 9:50 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest