Solid tutorial. It never crossed my mind that game maker counts frames in float numbers. I usually use >= or
@1upIndie2 жыл бұрын
To be honest at the very beginning i didn't knew it either, wondering why == isn't working properly.
@AdamBarkerTheАй бұрын
Perfect tutorial, instantly got my character animated properly thank you. Not sure if you might know but can you use image index to play multiple specific frames instead of just one?
@1upIndieАй бұрын
Yeah, but not sure if that works if the attached sprite has more indexes (more images in total) then the other ones, so that may cause an error. But you can try it though GameMaker is quite forgiving in that regard. Or were you asking to draw multiple things with different indexes? That you can always do in the draw event, question is then how you want to loop them properly (use a simple variable that you update manually). So if you want to draw "manually" things just use the draw event and create your own indexes via variable. Hope that helps!
@AdamBarkerTheАй бұрын
@@1upIndieokay thanks a lot, i’ll try some of this!
@WyMustIGo2 жыл бұрын
I don't understand why you don't have more subscribers and views, your videos are very well done.
@1upIndie2 жыл бұрын
Thanks a lot, but I guess I am in the wrong business, more make up game tutorials to go!
@adamzeiun892 Жыл бұрын
Because it is useless and the fool who thinks people are fools 👌
@Just226 Жыл бұрын
Thank you, I never thought about that
@1upIndie Жыл бұрын
Glad I could be of small help.
@shadowSquall12 жыл бұрын
What about using Floor(image_index == 3) to get the exact index number? I've used that function with limited issues for creating attack hitboxes, and certain moments in the animation where I need something to happen at that exact moment.
@1upIndie2 жыл бұрын
You can use floor, which is basically rounding down a given input to an integer (here the image_index). There are multiple ways to to Rome, so yeah, thanks for sharing.
@Majkerson2 жыл бұрын
U re doing awesome job
@1upIndie2 жыл бұрын
Thanks mate.
@TapeYTP7 ай бұрын
So is this how to fix the issue with flickering animation when I release buttons between frames?
@1upIndie7 ай бұрын
Not sure what you mean by flickering. Normally your refresh rate handles things so there is no flickering or you animation is twitching between states on each frame so it appears to flicker, but is that the code toggles between states/scales all the time. Hope that helps.
@leonardominotti112 жыл бұрын
Nice vídeo, Thx!
@50-blessings9211 ай бұрын
help me how can i use a animation that is facing right face left??
@1upIndie11 ай бұрын
There are multiple ways, it depens how you setup your project. A simple way is to check which direction the instance is moving, so is the current x bigger then previous one, so scale the it normal (1) if different, scale -1. So you can make a check/set in the step event: if(x > xprevious){ image_xscale = 1; } if(x < xprevious){ image_xscale = -1; } Hope that helps
@50-blessings9211 ай бұрын
@@1upIndie in the end you are the only one who helps
@axelgustavobernalcastilla72412 жыл бұрын
Why if you put two sprites, image_index just get the information for the first sprite you index and then if you change the sprite for another the function image_index keep the information of the first sprite, this happen when the sprites have different number of frames
@1upIndie2 жыл бұрын
Oh, because the image_index is bound to the instance created, this means it is one unique number tied to the instance. So I would guess the internal image_index is being reset or clamped down if the swapped sprite has a lower frame count. Was that what you were looking for?
@pronax57349 ай бұрын
I have a question. How to stop spamclicking (for things like attack), is there any function for it?
@1upIndie9 ай бұрын
Well there are diffent ways to handle this. One is to have an attack animation to run to the end (there you block the input) or what most games do is to run down a timer and block the input in that way. There is no general purpose function for things like that, at least not in GameMaker. You have to build your own "system" for that. Was that what you are looking for?
@tampuruangflash5922 Жыл бұрын
Thank you
@1upIndie Жыл бұрын
You are more then welcome!
@julkiri944110 ай бұрын
Hello, I'm having trouble making the ping-pong animation
@1upIndie10 ай бұрын
What is a ping-pong animation?
@julkiri944110 ай бұрын
@@1upIndiewhen it reaches the last frame it plays the animation in reverse and when it reaches the first frame it plays it normal