Page 1 of 1

can you change velocity oncollide?

PostPosted: Tue Sep 01, 2009 3:47 pm
by Ian151
since there is a new menu that can change the velocity of a circle, is there a variable that now moves a shape in a new direction in an oncollide? And when I was trying to change e.this.speed, it didn't work, but for some reason that command added a new property to the circle called "speed", is this a new way to store variables??

EDIT: Am I doing something wrong with the onhitlaser? I thought you could change something like the color of the object it hit but you can't?

EDIT2:I see a material velocity property now but I'm still a little confused about some other things I said here, including how this property works.

Re: can you change velocity oncollide?

PostPosted: Tue Sep 01, 2009 4:21 pm
by KarateBrot
hmm... i am searching for a way to display velocity without onCollide or laserHit every day but i didn't found anything until now...

but is there a way to add new variables to objects without using onCollide? so that i can otherwise add e.this.speed or whatever.

Re: can you change velocity oncollide?

PostPosted: Tue Sep 01, 2009 4:38 pm
by RA2lover
Don't think so :lol:
hovewer, there is some sort of material velocity variable - with my experimentations its like a conveyor belt without moving parts.

You can add variables to objects using lasers too - just remember to use e.laser or e.geom

Re: can you change velocity oncollide?

PostPosted: Tue Sep 01, 2009 5:07 pm
by Paradigm 29
Ra2lover is right.
There is no way to change the velocity of an existing object with thyme.

Can

PostPosted: Tue Sep 01, 2009 8:35 pm
by blahblah200
Ian151 wrote:since there is a new menu that can change the velocity of a circle, is there a variable that now moves a shape in a new direction in an oncollide? And when I was trying to change e.this.speed, it didn't work, but for some reason that command added a new property to the circle called "speed", is this a new way to store variables??

EDIT: Am I doing something wrong with the onhitlaser? I thought you could change something like the color of the object it hit but you can't?

EDIT2:I see a material velocity property now but I'm still a little confused about some other things I said here, including how this property works.


Yes - you can use this to store variables and you can use any text you want. This isn't new though because it works in Phun as well!

Hope it helped!! :D