need tips for recycling bullets instead of spawning

PeeCeePeeCee Member Posts: 107
edited December 2011 in Working with GS (Mac)
Hi.
atm, im using spawn behaviour to spawn different types of bullets based on random integer. is there a way to completely mimic this using recycled actors in the exact same fashion.
any tips or help , example would be much appreciated.

Comments

  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    Sometime later today, I will try and post my rules for recycled bullets.
  • PeeCeePeeCee Member Posts: 107
    hi mu.
    thanks. that would be fantastic and many thanks for that
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    http://forums.gamesalad.com/discussion/36347/recycling-bullets

    i posted a new thread so it might help more people.
  • PeeCeePeeCee Member Posts: 107
    thanks a million mr mu :) . will check it out now.
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    Was it helpful? Any questions?
  • PeeCeePeeCee Member Posts: 107
    Hi good friend. thankyou so much for always touching base to make sure we all get our answers.
    your vid was great. Im almost there but now having the issue where whenever i press fire button to shoot , i notice the bullet resets to startx and starty (contrained x y i mean) . so for example in your app as you hit your fire button , i see your bullets continously shoot one after another well for me i notice each bullet resets and try to shoot off and when i go to hit fire button again i see it come back to start position before it moves off again , so its basically like a yoyo effect , the bullets shoot off and then comes back to start position.

    what am i not doing or seeing here. I'd appreciate your assistance and can't thankyou enough so far

  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    Are u using constrain for the startx an y?

    I think I used change attribute. That might be what it is. If not, post ur rules or a video.

    Try it out.
  • PeeCeePeeCee Member Posts: 107
    yes i am using contrain on my actor(your tank equivalent) which are passed to global variable in startx and starty so my bullets can fire from.
    is this what you are doing???
    my tank actor is contraining x y to game.startx and game.starty
    my bullet then fires from self.position.x to game.startx and game.starty

    is this right so far.

    if you prefer i post code then please do tell and i shall.


  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    Ahh yeah, that sounds Right. I misunderstood.

    Try posting code so I can take a closer look.

    Screenshots or a video would probably be best.
  • PeeCeePeeCee Member Posts: 107
    screenshots it is. any ideas how i upload screenshots on here. :)
  • PeeCeePeeCee Member Posts: 107
    would you prefer i email you screenshots now my friend. if so kindly send me your email address.
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    cto@mukow.com

    If u want to put screenshots on the forum u would have to upload to a image sharing website like photobucket.com

    Do whatever is easiest for u buddy :)
  • PeeCeePeeCee Member Posts: 107
    ok my kind friend

    I've sent you an email which you will recieve from my email which is robby@pcbuddy.com.au.
    i look forward to your reply.
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    I emailed back
Sign In or Register to comment.