Hello, so i have 2 problems/questions.
var effect : Transform;
function AddingPoints()
{
Instantiate(effect, transform.position, Quaternion.identity);
}
But i have problem because when i play it when it plays it plays on the middle of player and i want it to play just above is there way i can change position where the particle is played and also ‘i have background’ and when the particle is played it isnt showed but when i remove background it shows particles so they are working but behind the background any idea :?
so i fixed one of the issues, i put the particles into empty game object and moved the particles a bit up so and added ‘effect.tranform.position’ but now question why do they appear behind sprite ? because i want particles to be in front
edit: i fixed it aswell i changed sorting layer in particle system
apparently the transform doesnt work because it doesnt instantiate above player but on somewhere around is there some solution i can instantiate the particles just above player :? maybe like y.+5 or something
Why not just keep moving the empty game object around until you are happy with where it is?
i tried and the point is that the player is constantly moving right and left and it doesnt work
so i just put it to spawn in middle of player is not bad but problem im having now is that the particles plays behind the background even tho that the background sorting layer is set to background and particles to foreground
Edit: I did it basically the background was white and the particles wasn’t visible but i tried setting it to grey and there was particles but idk why they werent visible if they were blue ? even start color is blue but on white sprite its not visible idk but thanks
change the angle your particles are shooting out at so the shoot towards the screen (particles are 3d) & that might help. Play around with the times & number of particles as well.