Log In  
Follow
adge

Does anybody know what's the easiest way to add a tail to a moving pixel?
A pixel is moving one px to the right but instead of just moving it there should stay a pixel in the pixels first location for a short time. Imagine a fade out.

Is there an easy way to accomplish this?

24 comments



Another update, I should probably do less but I'm bad at scheduling.

Cart #31827 | 2016-10-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

NEW CONTROLS:

UP, DOWN --> Rotate
X,C --> Zoom
LEFT,RIGHT --> Particle Size
X&Z --> Effect ON/OFF

The effect is a bit wanky because it makes Z sorting kinda useless --> particles/region increases the deeper they get so they "overdraw" the trails of the ones that are above and more towards you.
This is not my effect, I took it from
NuSan's Trails example
I hope thats ok.

I would like to make a better effect but I'm kinda bad at stuff like that. tyroney already showed me another way which you can see here:
Tyroney's pixel tail

[ Continue Reading.. ]

8
7 comments



Hey guys,

I'm wondering if there is an exponential function? I've been trying to build my own but it doesn't quite work so I don't know what to do.

1
13 comments



Hi there!

I'm totally new here but got an idea for a small game. A guy has to stay on a wheel which would start to spin if he's not right above it's center point. So I would need to somehow implement lever rules and I would need to rotate the wheel but I really don't know how to do this.

I already took a look at this but really don't understand the code. The first one seems a bit buggy, the second works fine but I can't find the point where the sprite is assigned to the car table.
https://www.lexaloffle.com/bbs/?tid=2189

so to start I would've thought of something simple like this

function draw_wheel()
spr(0,x,y,...)
------------- (get the rotated sprite and draw it)

function _update()
rotate_wheel(1) (add's one degree of rotation every frame (does not have to be 1°))

function _draw()
draw_wheel()

So in a sentence I want a sprite that get's rotated with ever frame by a certain amount.
Some tips?

1
10 comments