Stencyl Intermediates VII - Shooting Bullets

  Рет қаралды 8,350

Mad Tech

Mad Tech

Күн бұрын

We go through how to make our character to shoot bullets

Пікірлер: 20
@SouperFisHMaN
@SouperFisHMaN 5 жыл бұрын
How can i change the position of where the bullet comes from the actor?? To make the bullet look like it comes from a gun
@KevinGaning
@KevinGaning 4 жыл бұрын
why my run left bullet go left, but if my run right bullet go left can you explain it to me?
@techismad
@techismad 4 жыл бұрын
This is going to be hard to solve without seeing your code blocks. The things that I can guess are the following: Did you get the name of the right animation correctly? Did you set the x speed of the bullet properly? So right bullet = positive number and left bullet should be negative number
@LarryWolf1919
@LarryWolf1919 4 жыл бұрын
​@@techismad My guess is that these people having problems shooting only to the right (or only to the left) don't have an animation set to move to the left, and move to the right respectively. They probably went the other way (no pun intended) and have only the animation moving to either side, and use the GROW code block to rotate the animation -100 in the x axis when moving to the opposite side. This way Stencyl interprets as always having the animation facing the original side, even tough it was distorted via code.
@kathy5399
@kathy5399 5 жыл бұрын
So like how come my bullets show up way above the character when I set the x and y of the bullet to be that of the character?
@techismad
@techismad 5 жыл бұрын
Gnarfox - this might be the way the bullets are designed. If your bullets are really big, this can affect the position. So lets say you’ve got a transparent png as your bullet, the png might be big with a small bullet in the middle of it.
@kathy5399
@kathy5399 5 жыл бұрын
Thank you, but I've figured out how to fix the problem. I just had to add or subtract (x,y) values from my actor to get it to the spot I wanted the bullets to show up. This tutorial really helped though, so thank you!@@techismad
@denemeklazım1
@denemeklazım1 Ай бұрын
Thank you
@heidi2885
@heidi2885 6 жыл бұрын
how do u stop it from collideing with the person that is shooting?
@adriankmiec9875
@adriankmiec9875 6 жыл бұрын
have you figured it out yet?
@heidi2885
@heidi2885 6 жыл бұрын
No
@adriankmiec9875
@adriankmiec9875 6 жыл бұрын
go to settings, Groups, create new ( Call it bullet), make it collide with everything except for players, then go to your bullet properties, switch group to bullet, then, go to your character, properties, and switch it to players.
@noormoosa8033
@noormoosa8033 4 жыл бұрын
the bullet works great when i shoot on the right side but doesn't work on the left side even though i put negative in speed
@techismad
@techismad 4 жыл бұрын
what happens to the bullet? Does it travel to the left or not move?
@noormoosa8033
@noormoosa8033 4 жыл бұрын
Mad Tech not move
@samwarren6008
@samwarren6008 6 жыл бұрын
What if I wanted the player to have a certain amount of ammo?
@techismad
@techismad 6 жыл бұрын
That's where things get interesting! Set up a new attribute for your character called ammo. Set the value of ammo to 10 or 100 or whatever your starting ammo is. In the code for shooting bullets, simply set your ammo attribute to -1 each time a bullet is fired. You will then need a block of code that checks if your ammo is zero or not. If the ammo reaches zero, you'll have to stop the bullets from being created and firing. You'll then need to figure out how to reload the ammo - either after some time, or when you pick up so more ammo.
@samwarren6008
@samwarren6008 6 жыл бұрын
A game attribute?
@samwarren6008
@samwarren6008 6 жыл бұрын
And which section of shooting bullets? There is, Set Shoot, or Shooting.
@samwarren6008
@samwarren6008 6 жыл бұрын
Thanks this works perfectly!
Stencyl Intermediates VIII - Bullets and Groups
6:37
Mad Tech
Рет қаралды 1,4 М.
Stencyl Intermediates IX - Bullets killing Bad Guys
7:28
Mad Tech
Рет қаралды 3,2 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 74 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
Stencyl Quick Tutorial 2 - Character Movement
5:45
Mad Tech
Рет қаралды 6 М.
Stencyl Quick Tutorial 6 - Character Firing
7:54
Mad Tech
Рет қаралды 3,5 М.
Stencyl for Beginners pt II
8:46
Mad Tech
Рет қаралды 33 М.
Stencyl game engine: Slimey's Aventure (2017)
2:48
Sparckman
Рет қаралды 23 М.
Stencyl Beginners II - Starting to use Stencyl
4:29
Mad Tech
Рет қаралды 10 М.
Stencyl Quick Tutorials 3 - Jumping
5:48
Mad Tech
Рет қаралды 4,1 М.
Stencyl Collisions Killing Objects
1:42
Mad Tech
Рет қаралды 10 М.
Make a Complete Game in Stencyl - Marathon Tutorial!!!
1:15:51
Mad Tech
Рет қаралды 26 М.
Stencyl for Beginners pt III
4:15
Mad Tech
Рет қаралды 19 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37