#help me with my peepee function

1 messages · Page 1 of 1 (latest)

knotty hare
#

I think i just have something unchecked or something wrong with my script. My script is very basic and just says on key down particle system will Play() and on release it will Stop(). I've tried messing with the Stop Action but doesnt seem to work

#

also simulation space is world

#

same with collision type

#

i want the particles to remain where they were originally and not just snap to the new area where the player looks

lusty river
#

@knotty hare

#

I shall try and help you through this

#

I'm not the best

#

So your having trouble with the particle placement or the script?

#

Hello?

#

So I think the problem is the object that the particle system is on

#

If you don't want it rotating when you do, then don't rotate the object

#

First off for the Stop()
Make sure it's actually being called so use some debugging.

#

Also when you use Stop() it will continue for the particle system duration then stop. If I am correct...

#

So just try turning that down.

#

Hope this helps

knotty hare
#

@lusty river the object is the player

#

the rotation is completely fine

#

as u can see in the video though, it looks like the particles just snap to wherever you looked when you press the key

#

instead of remaining in the air where they were before

#

like it just snaps to the new location

#

this is the script

#

it all works fine

#

its just that one visual thing i dont want so thats why im thinking its something i can just easily uncheck in the inspector maybe

#

but i dont know what it could be

#

im not sure how particlesystems entirely work because im new to unity

#

maybe if i want to fix this i'd have to create several instances of the same particle effect or something? i have no idea

#

Ok so i tweaked the 'start lifetime' to a very high value, and this worked

#

but it now stops the particles from happening permanently after you've used up all the 'max particles' i think

#

actually you know what this works

#

it resets it after a while

#

kinda like emptying a bladder

lusty river
#

Lol

knotty hare
#

this is a happy mistake actually

lusty river
#

Okey

#

Good

lusty river
#

Or do you still have more problems?

knotty hare
#

fixed