Please Help Me!!!!!!!!!!
10 posts • Page 1 of 1
Please Help Me!!!!!!!!!!
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
! SOMEBODY PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Oso
-

Osoguineapig - Posts: 7
- Joined: Sun Aug 15, 2010 2:30 am
Re: Please Help Me!!!!!!!!!!
Are you using Phun or Algodoo?
I thought in Phun this could happen to some certian variables...
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!
-

Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: Please Help Me!!!!!!!!!!
in the block that should have a different attraction you can type in onCollide =
- Code: Select all
(e) =>{e.this.attraction = {scene.my.lift}}
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Please Help Me!!!!!!!!!!
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!
-

Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: Please Help Me!!!!!!!!!!
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
-

Osoguineapig - Posts: 7
- Joined: Sun Aug 15, 2010 2:30 am
Re: Please Help Me!!!!!!!!!!
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
-

Osoguineapig - Posts: 7
- Joined: Sun Aug 15, 2010 2:30 am
Re: Please Help Me!!!!!!!!!!
okej but you can make it collide anyway
-

Rideg - Posts: 948
- Joined: Tue Dec 15, 2009 5:17 pm
- Location: Östersund, Sweden
Re: Please Help Me!!!!!!!!!!
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!
-

Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: Please Help Me!!!!!!!!!!
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
-

Osoguineapig - Posts: 7
- Joined: Sun Aug 15, 2010 2:30 am
Re: Please Help Me!!!!!!!!!!
I figured out my problem!
thank you so much to everybody who gave me helpful suggestions! 
Oso
-

Osoguineapig - Posts: 7
- Joined: Sun Aug 15, 2010 2:30 am
10 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests




