165 reputation
19
bio website chen.asraf.me
location Bat Yam, Israel
age 22
visits member for 2 years, 4 months
seen Jun 2 '13 at 0:20

Web developer at Wiser.

I get along great with PHP, HTML5/CSS3 & also love jQuery.

Trying to learn Node.js and get into Android development.


Jul
5
asked Controlling a GameObject from another GameObject's script component
Jul
5
comment Using Lerp to create a hovering effect for a GameObject
@dreta Only lets me do it in 2 days so I'll come back to it
Jul
5
answered Using Lerp to create a hovering effect for a GameObject
Jul
5
comment Using Lerp to create a hovering effect for a GameObject
It does. RIght now I simply used return; after changing ReachedTop if it's true, and the effect is much smoother - but it still has jumps now and then (like every 3-4 seconds). I'm using 0.03 and 0.97 for the checks, and anything farther from the integers than that results in a million jumps.
Jul
5
comment Using Lerp to create a hovering effect for a GameObject
Debugging this did work and the variables did change, but I'm not sure if often enough, whatever the result though, it didn't ever do this properly, I'll try to change that, thanks. Can you think of better logic to work it?
Jul
5
comment rotate player based off of joystick
Awesome, would've never figured this out on my own haha!
Jul
5
comment Using Lerp to create a hovering effect for a GameObject
@melak47 The code is self explanatory: hovering over the cube would make it change colors, slowly and gradually between (in this example) red and green; it starts red/green, slowly becomes a cross of both, and eventually becoming the other color. I don't care which starts. That's actually irrelevant anyways; the real question is how do I use Time.time (or any better replacement you can think of) to have a number that goes from 0 to 1 as a float, and when reaches 1, changes direction and counts backwards to 0, (0.9->0.8->0.7->...) and the repeats the other way around.
Jul
5
awarded  Supporter
Jul
5
asked Using Lerp to create a hovering effect for a GameObject
Jun
14
awarded  Autobiographer