edited March 2014 in ORK Support
Hey GiL, I want your advice on something.
I have a gun and when I shoot, sparks come out of the gun's tip and vanish instantly. Good.
The problem is that there is a little pause whenever the sparks appear, so when I'm running and shooting, it'll be running --> shooting and character stopping ---> running again.

I know why it's like that. Because in my Gun Ability Battle Event, I did these:

Start Event --> Spawn Prefab (Spark) --> Wait (0.1sec) --> Destroy Prefab (Spark) ---> And than shoot out the bullet.

It was the Wait step that is making me pause. If remove the Wait Step, the character won't stop while shooting anymore, but the spark won't spawn either. Do you know a way around it?
Post edited by Shadow_Fire on
  • What you could do is not destroy the prefab spark; and add a small timed self-destruct script to the Spark prefab.
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • Keep in mind that battle events can block your player's control, depending on your settings (battle system settings and event settings).

    Also, the Destroy Prefab step allows destroying prefabs after time - without enabling wait, this will result in the prefab being destroyed after the event :)
    Furthermore, the Emit Particles step (Function Steps) can be used to stop emitting particles, e.g. if you only want a single spark to fire, you'd most likely stop emitting right away after spawning.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks Kirby and GiL. I was able to figure out how to do it. Appreciate the answers.
Sign In or Register to comment.