BIG Problem! can't change sizes

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

BIG Problem! can't change sizes

Postby Rideg » Wed Dec 16, 2009 12:06 am

Hello again. I'm trying to change the size of the scene.addcircle but I can put in anything(example=99999999.0 or 0.0000000001) but it still has the same size. If anybody have ideas please reply because I can't figure it out.
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: BIG Problem! can't change sizes

Postby KarateBrot » Wed Dec 16, 2009 12:56 am

Make sure you typed := instead of only =

Code: Select all
(e) => { scene.addcircle({ radius := 2; pos := e.pos }) }
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: BIG Problem! can't change sizes

Postby Rideg » Wed Dec 16, 2009 8:48 am

yes I know that. still won't change
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: BIG Problem! can't change sizes

Postby standardtoaster » Wed Dec 16, 2009 9:10 am

You need to use scene.addCircle({your stuff}). It would help if you posted your current script.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: BIG Problem! can't change sizes

Postby Rideg » Wed Dec 16, 2009 9:20 am

I don't know what it was but it works now:P the script is exactly the same as before!
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: BIG Problem! can't change sizes

Postby davidz40 » Wed Dec 16, 2009 5:18 pm

It's weird, but i had similliar problems too. Spawned circle had proper color,friction etc, but were constant size, regardless of what i put in radius := . But usually it works :crazy:
Phundamentalist
User avatar
davidz40
 
Posts: 438
Joined: Sun Sep 06, 2009 10:30 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron