Please Help Me!!!!!!!!!!

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

Please Help Me!!!!!!!!!!

Postby Osoguineapig » Sun Aug 15, 2010 3:02 am

In one of my scenes, I have an onCollide script that triggers a change in the variable "scene.my.lift". In one of my blocks, attraction = {scene.my.lift}. When I type this code in, and then press "sim start" the specified objects collide, and the attraction on the certain block changes. When I undo the sim start, all of a sudden, my scripts are gone, and it doesn't work if I press "sim start again. I have tried typing the codes and then performing mechanical operations to make sure when i hit undo i am not undoing the codes, but no matter where i am in the building or typing process, whenever i hit undo, the scripts are gone! This has never happened to me before! I have tride everything, and I don't know what to do :crazy: :?: ! SOMEBODY PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Oso
User avatar
Osoguineapig
 
Posts: 7
Joined: Sun Aug 15, 2010 2:30 am

Re: Please Help Me!!!!!!!!!!

Postby Matten » Sun Aug 15, 2010 1:37 pm

Are you using Phun or Algodoo?
I thought in Phun this could happen to some certian variables...
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: Please Help Me!!!!!!!!!!

Postby Rideg » Sun Aug 15, 2010 1:52 pm

in the block that should have a different attraction you can type in onCollide =
Code: Select all
(e) =>{e.this.attraction = {scene.my.lift}}
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: Please Help Me!!!!!!!!!!

Postby Matten » Sun Aug 15, 2010 1:55 pm

Or if you know some variables that don't delete dynamic values, for example textScale, type in the textScale:
Code: Select all
{attraction = {scene.my.lift}; *textScale*}
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: Please Help Me!!!!!!!!!!

Postby Osoguineapig » Sun Aug 15, 2010 3:35 pm

I am using Phun, but the weird thing is I have done many other things like this before and this is the first time this has happened
Oso
User avatar
Osoguineapig
 
Posts: 7
Joined: Sun Aug 15, 2010 2:30 am

Re: Please Help Me!!!!!!!!!!

Postby Osoguineapig » Sun Aug 15, 2010 3:37 pm

Rideg wrote:in the block that should have a different attraction you can type in onCollide =
Code: Select all
(e) =>{e.this.attraction = {scene.my.lift}}


Yes, but the block that is changing attraction is not the block colliding with another
Oso
User avatar
Osoguineapig
 
Posts: 7
Joined: Sun Aug 15, 2010 2:30 am

Re: Please Help Me!!!!!!!!!!

Postby Rideg » Sun Aug 15, 2010 4:33 pm

okej but you can make it collide anyway
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: Please Help Me!!!!!!!!!!

Postby Matten » Sun Aug 15, 2010 8:10 pm

Matten wrote:Or if you know some variables that don't delete dynamic values, for example textScale, type in the textScale:
Code: Select all
{attraction = {scene.my.lift}; *textScale*}

This would work then.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: Please Help Me!!!!!!!!!!

Postby Osoguineapig » Sun Aug 15, 2010 9:04 pm

Matten wrote:
Matten wrote:Or if you know some variables that don't delete dynamic values, for example textScale, type in the textScale:
Code: Select all
{attraction = {scene.my.lift}; *textScale*}

This would work then.


Okay I will try it :)
Oso
User avatar
Osoguineapig
 
Posts: 7
Joined: Sun Aug 15, 2010 2:30 am

Re: Please Help Me!!!!!!!!!!

Postby Osoguineapig » Mon Aug 16, 2010 4:04 am

I figured out my problem! :D thank you so much to everybody who gave me helpful suggestions! :thumbup:
Oso
User avatar
Osoguineapig
 
Posts: 7
Joined: Sun Aug 15, 2010 2:30 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 4 guests