160 reputation
8
bio website chen.asraf.me
location Bat Yam, Israel
age 22
visits member for 1 year, 10 months
seen Jun 2 '13 at 0:20

Web developer at WisePricer, 21 years old.


Jul
9
comment Best algorithm for recursive adjacent tiles?
Would you please check my update?
Jul
8
comment Best algorithm for recursive adjacent tiles?
I see, in my case then I need 4 lines, I can't have it leak beyond thin lines. I'll try this out, thanks.
Jul
8
comment Best algorithm for recursive adjacent tiles?
That's an interesting link... I'm not very familiar with Stacks, I slept through those classes in high school, haha. How hard it this to reproduce in C#?
Jul
8
comment Best algorithm for recursive adjacent tiles?
Hm, thanks, I'll try that out. Seems that logically, checking 4 ways will eventually check in all directions? Or am I imagining?
Jul
7
comment Controlling a GameObject from another GameObject's script component
Works like a charm, thanks!
Jul
6
comment Controlling a GameObject from another GameObject's script component
I'm not really familiar with that syntax :s lame, I know. Could you help me figure out what it means in general? I'll try it either way and let you know the result.
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
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.