If we have it, our player object will collide with the gun causing unintended consequences. Make sure to disable/remove the Box Collider that gets created with the Cube. Probably…įirst let’s create a Cube and make it the child of our Main Camera. Muzzle Flash Sprite Png - Drawing is a totally free PNG image with transparent background and its resolution is 800圆52. I’m sure later on we can just attach the asset and *most likely* everything will be fine. I’m sure we can grab a gun asset from the game store, but instead, I’m going to first create a simple cube that’ll represent our weapon. The first thing we should do is create our “gun”. Instead, we just fire a Raycast and if we hit, we do some gun animation effect to make it appear that the bullets are coming from the gun.įor larger weapons like rocket launchers we have to create the projectiles, but for a fast shooting weapon like an assault rifle or pistol we can just use a Raycast. Hope it helps File(s): MuzzleFlash.png 42. Took about 5 minutes to draw up, dont worry about crediting. Share Icons: Preview: First time using a graphics tablet, made this so easy. Not only that, we don’t actually shoot any projectiles as that can become computationally expensive. Collections: 2D::Animation/Effect Graphic FX special effect Favorites: 6. We need to add a weapon and from my research, in most games, when a player shoots, it’s not actually from the gun, it’s from the camera’s center view. In our current state, we just have our character: The next thing to do is to attach a weapon to our character and then add the game logic for shooting. With the hackathon over, I’m back to my regularly scheduled daily posting! Yay! The hackathon was 3 days long and it took me 2 days to recover from it! Check out my hackathon postmortem! Were you wondering why there was a large gap between today and the last post? Well that’s because I went to participate in the Seattle AR/VR hackaton #6!