check var right ( you have to make a variable for example "right" on right button it's true, on left button its false) if var = false -> create moving object (your bullet) -> x= player.x y = player.y direction=0 if var = true -> create moving object (your bullet) -> x= player.x y = player.y direction=180
thank man, please you can make tutorial how to make an animation if you press a key please i very need it i'm programming god of war game and i need make kratos make an animation
define animation... do you mean for example: i press the A button and the character is dancing for 3 seconds... or do you mean you press the B button and you can see the character sitting on the ground and do nothing until i release the button?
why make my player a "moonwalk" when i press fast from left to right or right to left? :S
lulububuindahouse 4 months ago in playlist gamemaker
how to make it shoot? :O
AllSizeXtraSmall 5 months ago in playlist More videos from AkoyaP6618
@AllSizeXtraSmall
example:
"Press E - Event":
change sprite (your animation)
check var right ( you have to make a variable for example "right" on right button it's true, on left button its false) if var = false -> create moving object (your bullet) -> x= player.x y = player.y direction=0 if var = true -> create moving object (your bullet) -> x= player.x y = player.y direction=180
AkoyaP6618 5 months ago
@AkoyaP6618 wow.. it's work!.. but i want to ask 1 more question.. how to make enamy.. shoot @ me? :O
AllSizeXtraSmall 5 months ago
@AllSizeXtraSmall
I'll post a video as an videoanswer to this video ;)
AkoyaP6618 5 months ago
@AllSizeXtraSmall
if you want i can make more tutorials, ask only ;)
AkoyaP6618 5 months ago
@AkoyaP6618 can u make a tutorials? :)
AllSizeXtraSmall 5 months ago
@AllSizeXtraSmall
youtube.com/watch?v=S82vDfC1asA
one example for an shooting enemy...
AkoyaP6618 5 months ago
@AkoyaP6618 can u tell me how to make game like this? /watch?v=kTkITwqp1vA&feature=related
the light following player and pickup the gun.. :)
AllSizeXtraSmall 5 months ago
# I will post a VID that fix your problem with the collision after jumping... i'ts too easy xD #
AkoyaP6618 8 months ago
hey i got error unknow variable player.x player.y please help me
TheArmageddons 8 months ago
@TheArmageddons
the best thing is to name your object you are playing with - player -
this is a doublefunction, if the variable player can not found it will use the object because of the name
try this, i think it will work
AkoyaP6618 8 months ago
@AkoyaP6618
thank man, please you can make tutorial how to make an animation if you press a key please i very need it i'm programming god of war game and i need make kratos make an animation
TheArmageddons 8 months ago
@TheArmageddons
define animation... do you mean for example: i press the A button and the character is dancing for 3 seconds... or do you mean you press the B button and you can see the character sitting on the ground and do nothing until i release the button?
AkoyaP6618 8 months ago
@AkoyaP6618
a and b please
TheArmageddons 8 months ago