loop trigger #0
- bullet shoot green dot at speed 0
- set x pos of bullet to x pos of bullet + 1
it makes a trail behind the bullet but with 400 objects so i need someone to help me make a trail with paste into background instead
also i wonder if i wanted to use active objects how do i make it so that it doesnt create 400 objects but maybe 30 and i can make them a bit bigger so i can have a animated trail
Shooting at speed 0 seems an odd way to do things (unless there's something clever here that I'm missing). Instead, you would use Create Object, and set the position of the object to the current position of the bullet.
To use Paste into Background, you should continually set the position of the "green dot" object to the position of the bullet (rather than creating a new one each time), then use Paste Into Background on the green dot. This will create a permanent trail, though, unless you're using TGF and you scroll off the screen.
@Wong - It's just an even easier way to do trails, especially when dealing with multiple bullets and trails, that way you don't end up with things going all screwy when you try to set position.
I don't know why he's got that Xpos + 1 in there though.
I seriously doubt he really wants it to be pasted into the Background, cause that would basically screw up more than it'd help.
To get that number of objects in the trail down, do this.
Number of (trails) > 0 - Add 1 to value A of (trail)
Value A of (trail) >= 30 - Destroy //You need to tweak this value a bit to get it right
you shoul NEVER create a trail out of active objects since
1: too many actives are slow
2: you reach the object limit
3: there are better ways
atleast doing as in the other topic (one active/pixel)
Just make it out of about 10-20 AO's, that what I usually do for trails.
Just a simple "every .10 seconds create 1 "trail" at position of "real object"- set direct "trail" to direction "real object""
"Always- add 1 to value A of trail"
"value a of trail > 50, destroy trail."
I should note that if this trail is animated, give it an "Appearing" Animation of a 1x1 black dot. This is because whenever your trail is created, as soon as it enters the screen, the first frame will ALWAYS be the downwards (dir 24) animation of "stopped", unless it has an "appearing" animation.