absolutely, I need a quick break from working on my project. I'll work on it in the morning, Sorry, but I haven't had any sleep since I started coding yesterdy.
Ok, let me give you a bit of a run down on how the script will work. (I'm posting this for myself as well as sorta blueprint before I start).
* One argument will be the speed (fast/slow…won't make too much of a difference, unless you have like a billion sprites using it)* The next argument will be whether you want the object to snap to the slope, or flow into it smoothly (giving nice affect)* On fast speed, it will check for a collision one pixel to the left, and to the right of the sprite. Then, it will take the average of these two points and tilt the sprite as needed.* On slow speed, it will check for several more pixels, and average the heights, calculate the angle, and turn the object.* For snapping, you can have it either snap directly to the angle, or flow into it. Flowing will look more realistic.
absolutely, I need a quick break from working on my project. I'll work on it in the morning, Sorry, but I haven't had any sleep since I started coding yesterdy.
heh xD same as me, Im nonstop workin on my game :)
I'll be lookin forward to ya script :)Ok, let me give you a bit of a run down on how the script will work. (I'm posting this for myself as well as sorta blueprint before I start).
* One argument will be the speed (fast/slow…won't make too much of a difference, unless you have like a billion sprites using it)* The next argument will be whether you want the object to snap to the slope, or flow into it smoothly (giving nice affect)* On fast speed, it will check for a collision one pixel to the left, and to the right of the sprite. Then, it will take the average of these two points and tilt the sprite as needed.* On slow speed, it will check for several more pixels, and average the heights, calculate the angle, and turn the object.* For snapping, you can have it either snap directly to the angle, or flow into it. Flowing will look more realistic.sounds awesome o_o