sprite image trails
Posted: Sun Feb 16, 2014 10:56 pm
Does anyone know of a good way of getting sprites to leave a temporary "image trail"?
I'm trying to emulate tracer fire for a shooting gallery mini-game that arcs from one or more positions off-screen towards the mouse before disappearing (kind of a reverse of the "repulsor" sprite demo), following a spline (to make the sprites arc rather than straight line), and in doing so I realized that my long sprites couldn't rotate (much less curve) with the arc. I thought a simple solution to this would be to create some sort of image trail; multiple identical circular segments partially overlapping and following the lead segment. That way they could follow the sort of parabolic arcs I wanted and look like a tracer round. I understand I could do this with composite probably, but I want to be able to have multiple (at least dozens) of individual "bullets" on screen each followed by its own "trail".
Is this possible within the limits of sprites? Is there a better way of doing it? Is this use of sprites likely to slow Ren'Py to a crawl?
I'm trying to emulate tracer fire for a shooting gallery mini-game that arcs from one or more positions off-screen towards the mouse before disappearing (kind of a reverse of the "repulsor" sprite demo), following a spline (to make the sprites arc rather than straight line), and in doing so I realized that my long sprites couldn't rotate (much less curve) with the arc. I thought a simple solution to this would be to create some sort of image trail; multiple identical circular segments partially overlapping and following the lead segment. That way they could follow the sort of parabolic arcs I wanted and look like a tracer round. I understand I could do this with composite probably, but I want to be able to have multiple (at least dozens) of individual "bullets" on screen each followed by its own "trail".
Is this possible within the limits of sprites? Is there a better way of doing it? Is this use of sprites likely to slow Ren'Py to a crawl?