I was searching for a completely different topic and I accidentally improved my game by finding this video instead. Can't even remember what I was looking for initially. :) Awesome help, thanks!
This video is really helpful! Just a side note for anyone experiencing problems, to prevent creating dust while turning in the air add an "if" statement that checks for touching the ground. if(yourVariableForTouchingGround == true) { dust.Play(); }
How do you squish the player on jump? Via code or animation? Also is sprite a child of the main game object, as I don't think you'd want to squish the rigidbody as well. Also how do you do it over the short period of time, squishes over like half a second.Thanks!
The character sprite is a child of the "Character" object. I then increase localScale.y by about 0.2 and and decrease localScale.x by about 0.2. I use an IENumerator to increment the steps inbetween for a duration of about 0.2 seconds - This is for jumping. For landing, I do the opposite.
Another solution for this is to use Trigger Parameter (say, triggerName) in your Animator. Make a transition from idle(default) state to squish animation state with the trigger parameter as condition. On the return (or next) transition path from squish animation state to the idle state (or jump state) use only exit time (no additional condition). Use animator.SetTrigger("triggerName") to activate the squish state and then it will automatically move following animation when the squish animation is complete.
you prolly dont care but does someone know of a tool to get back into an instagram account..? I somehow forgot my account password. I would appreciate any assistance you can offer me!
@Miguel Alfredo i really appreciate your reply. I got to the site through google and Im in the hacking process atm. Looks like it's gonna take quite some time so I will get back to you later with my results.
Please make a video about how you darken the surroundings and make a video about the lighting. I watched your other videos and I liked it very much, it's nice to watch from you so I'm waiting for the video.
I want the particles to activate while Im running but for som reason the particles start to emit after i realease shift Code: if (Input.GetKey(KeyCode.LeftShift)) { CreateDust(); moveSpeed = 0.8f; } //Hej else { moveSpeed = 0.5f; } } private void FixedUpdate() { rb.MovePosition(rb.position + movement * moveSpeed * Time.fixedDeltaTime); } void CreateDust() { dust.Play(); }
In 3d... Depending on your complexity of the game, you might have it set to be triggered in the animations themselves . You can add an Event towards specific frames, for example every time one foot touches the ground you fire the event create dust. For further coolness points you would change the emission starting point to be on the foot , when it touches the ground, I'd use the record button and switch the world transform of the particle system but since I have 0 clue of Unity3d, there might be some better way, like making 2 of the same particle systems and parenting them to each foot.
Great video, ive been having a problem where my enemies have been colliding with each other. Do you know how to make it so an object doesn’t collide with a certain object
dude i am the exact same except for i am doing a 3d game and like nothing is workin for me so i am trying other methods made up by me like this line of code does kinda work for me in 3d game but i am not getting the results i want void CreateDust() { dust.Play(); if (Input.GetButtonDown("CreateDust()") && isGrounded) dust.Play(); btw dis is not a fix this is just one of the many lines of code i am trying to do to fix this
I was searching for a completely different topic and I accidentally improved my game by finding this video instead. Can't even remember what I was looking for initially. :) Awesome help, thanks!
Awesome, hadn't even thought of this
4 years later, still great tutorial
I'm starting do make a pixel endless runner game and that was exactly what I needed.
Short, well explained and easy to follow for a begginer.
Thanks!
Excellent tutorial as usual! Simple yet very useful. Keep up the great job!
Thanks bud
Straight to the point and simple for great added value, thanks!
explanation like Brackey + blackthrone very nice
O.O so damn AWESOME!! Thank you for the clear and effective breakdown of this particle system. Kudos!
Thankyou, this gave me exactly the result I was looking for!
I've said this else where but you make awesome tutorials. You have a knack for it. Please continue!
I got exactly what I came for (the part to get the particles to stay in their place), thx a lot man
Yo this added so much depth to the motion in my game thank you!
holyshit, this is some serious production value and only 12k subs? if you keep going you will have much more man
Thanks Mate! I Really Appreciate You're Effort Trying To Help Beginners Like Us!
just what i needed! thanks
This video is really helpful! Just a side note for anyone experiencing problems, to prevent creating dust while turning in the air add an "if" statement that checks for touching the ground.
if(yourVariableForTouchingGround == true)
{
dust.Play();
}
A very very very very huge thankyou my brother
Thanks brother! I'm getting prepared to reach out to a publisher. Appreciate the helpful tips!
well done, short and precise!
That is a fundamentally different dust effect than on the thumbnail, you explained something completely different.
Amazing. I was looking for this. Thanks!
awesome this very helpful and short video
All what i needed! Thank u dude
Answered exactly what I wanted. Thanks!
Now I only need to figure out how to change that to an image. Thanks.
Bro this was the most helpful video I have ever watched thanks bro!
Really nice man. Very effective. I'll be implementing this later, exciting stuff.
Thank you very much. This is exactly what I was looking for!
This is just what I wanted bro so thankyou
thnx, now to add some other mash to it on my 1. game :)
this is exactly what i was looking for thx
Good tutorial! Concise and very well explained :)
Thank you bro
We need more video of particule system
exactly what i needed
thank you so much! very helpful and straight to the point!
I'm going to give this a shot here in 2022, wish me luck!
great video! Thanks!
really great tutorial! Very easy to understand and follow.
this been very helpful understanding the logic how to pull it off thanks just subbed to your channel
DUDE THIS IS SO AWESOME OMG THANKS!!!! UR DA BEST!
GREAT Tutorial, Thank you very much
Excellent video! Thanks
Thank you so much . Really helpful and works perfectly!
Thanks man! Easy stuff but still crispy🔥
How do you squish the player on jump? Via code or animation? Also is sprite a child of the main game object, as I don't think you'd want to squish the rigidbody as well. Also how do you do it over the short period of time, squishes over like half a second.Thanks!
The character sprite is a child of the "Character" object. I then increase localScale.y by about 0.2 and and decrease localScale.x by about 0.2. I use an IENumerator to increment the steps inbetween for a duration of about 0.2 seconds - This is for jumping. For landing, I do the opposite.
Another solution for this is to use Trigger Parameter (say, triggerName) in your Animator. Make a transition from idle(default) state to squish animation state with the trigger parameter as condition. On the return (or next) transition path from squish animation state to the idle state (or jump state) use only exit time (no additional condition). Use animator.SetTrigger("triggerName") to activate the squish state and then it will automatically move following animation when the squish animation is complete.
you prolly dont care but does someone know of a tool to get back into an instagram account..?
I somehow forgot my account password. I would appreciate any assistance you can offer me!
@Miguel Alfredo i really appreciate your reply. I got to the site through google and Im in the hacking process atm.
Looks like it's gonna take quite some time so I will get back to you later with my results.
@Miguel Alfredo it did the trick and I now got access to my account again. I am so happy:D
Thank you so much, you saved my account !
Thanks! Helped me a lot
Thanks, I’m using particles for collisions
Damn this is exactly what I needed! Great explanation!
thanks, it worked very well and simple
thank you man this is very awesome
Awesome video!
Thank you!
Really good video bro congrats 👍
Hi ! Been trying to figure how to do this for ages, thank you so much!
Thanks i will go dust my game now
looks awesome!
Simple and to the point😁, my game looks better already, thank you
Absolutely useful, thank you!!!!!!
Nice video, i made it and works, finally! thanks
Thanks
this works great! Thanks!
Thank you, its really helpful
that was really good, thanks
Wow! So cool, thank you!
Thanks a lot!
this helped so much, thank you :]
Very Good! Thank you.
THANKS BRO
You soo simple and cool👍🆒 awesome tutorial
you are the man!!!!! Subbed
Please make a video about how you darken the surroundings and make a video about the lighting. I watched your other videos and I liked it very much, it's nice to watch from you so I'm waiting for the video.
Bro where should i place the Creat dust (); because i dont have change direction command in 2d 😢😢 pls tell fast
Amazing
thanks
Cool.nice video
pretty usefull tutorial :) I´ve made my dust particles similary
i liked
Thank you
tysm
thank you
nice video!
Will the wall jumping video be out soon?
Cool, it worked thanks a lot man!, one sub for you!
hi I Think i really need help here btw this video is really help full thank you sir
Very cool
TYSM! :D
I want the particles to activate while Im running but for som reason the particles start to emit after i realease shift
Code:
if (Input.GetKey(KeyCode.LeftShift))
{
CreateDust();
moveSpeed = 0.8f;
}
//Hej
else
{
moveSpeed = 0.5f;
}
}
private void FixedUpdate()
{
rb.MovePosition(rb.position + movement * moveSpeed * Time.fixedDeltaTime);
}
void CreateDust()
{
dust.Play();
}
great video thank you. can this be used in 3D as well ?
Yes particle systems work in 2D and 3D games. Just change the material.
In 3d... Depending on your complexity of the game, you might have it set to be triggered in the animations themselves . You can add an Event towards specific frames, for example every time one foot touches the ground you fire the event create dust.
For further coolness points you would change the emission starting point to be on the foot , when it touches the ground, I'd use the record button and switch the world transform of the particle system but since I have 0 clue of Unity3d, there might be some better way, like making 2 of the same particle systems and parenting them to each foot.
where is the scrpt?
Great video, ive been having a problem where my enemies have been colliding with each other.
Do you know how to make it so an object doesn’t collide with a certain object
In Project Settings you can set the collision settings for different layers: docs.unity3d.com/Manual/LayerBasedCollision.html
collision matrix in project settings
like a wise man once said:
"unity particle system"
-Dani
Celeste, im really love this game
Its very good tutorial but does it works with 3D too?
Hey! My void Flip is totally différent from your, can you help me out because i dont know where i have to put the CreateDust() !
dude i am the exact same except for i am doing a 3d game and like nothing is workin for me so i am trying other methods made up by me like this line of code does kinda work for me in 3d game but i am not getting the results i want void CreateDust() {
dust.Play();
if (Input.GetButtonDown("CreateDust()") && isGrounded) dust.Play(); btw dis is not a fix this is just one of the many lines of code i am trying to do to fix this
I head this guy its a great DJ. Like legendary DJ. He goes under the name ScratchBartard....dont belive me? Look it up
i like you, great vid
I need some help. I want particles to come out of the ground after my character has jumped and hit the floor.
Спасибо! Очень кстати.
similar but power
cool
bravo