Recycling actor behind another

PeeCeePeeCee Member Posts: 107
edited November -1 in Working with GS (Mac)
Hi All.

I've come to know i definitely need to recycle instead of spawning which is killing memory and certainly FPS etc.

I recieved some heads up from guru's on how to call an off screen actor and then resend it back to its Y position(off screen position) to simulate a spawn and destroy. soo then..

i need help in firing this actor behind another in the same fashion as spawn works.

HERE'S WHAT I HAVE AND NEED

1. I have a cloud that moves left and right
e.g. it moves left (using velocity) till it hits left wall and then moves right (using velocity) till it hits right wall and then keeps looping through.
2. i want the rain drops(recycled actors) to fire out of the cloud as it moves and where ever it moves .

furter info i've got all this working perfectly as i need to using SPAWN and DESTORY but i want to get things working with on screen actors to simulate that exact same thing in a recycled method.

how do i get the an actor off screen(rain drop) to fire behind the moving cloud each time

any help would be appreciated.

many thanks

Comments

  • PeeCeePeeCee Member Posts: 107
  • old_kipperold_kipper Member Posts: 1,420
    I would try a reposition would be based on a random offset constrained to the cloud actor's position. And I would also consider using images in particles. I have got some very good effects with this and could send you an example. I am not moving a cloud but it would be easy to convert to it doing so.

    kipper
  • PeeCeePeeCee Member Posts: 107
    HI Kip.

    I would really appreciate your help and any examples you can send me pal.

    my email is " it.computers@hotmail.com " if that helps at all.

    Cheers
  • old_kipperold_kipper Member Posts: 1,420
    email sent

    kipper
  • PeeCeePeeCee Member Posts: 107
    Kip , your a champion for sending me an email.

    works perfect except i noticed that, seeing that its a particl effect then i cant check against a collision of raindrops . is there a way around this pal ?
Sign In or Register to comment.