Animation control [Game Maker Studio 2 | Basics]

  Рет қаралды 14,818

1up Indie

1up Indie

Күн бұрын

Пікірлер: 30
@eunit08
@eunit08 2 жыл бұрын
Solid tutorial. It never crossed my mind that game maker counts frames in float numbers. I usually use >= or
@1upIndie
@1upIndie 2 жыл бұрын
To be honest at the very beginning i didn't knew it either, wondering why == isn't working properly.
@AdamBarkerThe
@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
@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
@AdamBarkerThe Ай бұрын
@@1upIndieokay thanks a lot, i’ll try some of this!
@WyMustIGo
@WyMustIGo 2 жыл бұрын
I don't understand why you don't have more subscribers and views, your videos are very well done.
@1upIndie
@1upIndie 2 жыл бұрын
Thanks a lot, but I guess I am in the wrong business, more make up game tutorials to go!
@adamzeiun892
@adamzeiun892 Жыл бұрын
Because it is useless and the fool who thinks people are fools 👌
@Just226
@Just226 Жыл бұрын
Thank you, I never thought about that
@1upIndie
@1upIndie Жыл бұрын
Glad I could be of small help.
@shadowSquall1
@shadowSquall1 2 жыл бұрын
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.
@1upIndie
@1upIndie 2 жыл бұрын
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.
@Majkerson
@Majkerson 2 жыл бұрын
U re doing awesome job
@1upIndie
@1upIndie 2 жыл бұрын
Thanks mate.
@TapeYTP
@TapeYTP 7 ай бұрын
So is this how to fix the issue with flickering animation when I release buttons between frames?
@1upIndie
@1upIndie 7 ай бұрын
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.
@leonardominotti11
@leonardominotti11 2 жыл бұрын
Nice vídeo, Thx!
@50-blessings92
@50-blessings92 11 ай бұрын
help me how can i use a animation that is facing right face left??
@1upIndie
@1upIndie 11 ай бұрын
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-blessings92
@50-blessings92 11 ай бұрын
@@1upIndie in the end you are the only one who helps
@axelgustavobernalcastilla7241
@axelgustavobernalcastilla7241 2 жыл бұрын
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
@1upIndie
@1upIndie 2 жыл бұрын
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?
@pronax5734
@pronax5734 9 ай бұрын
I have a question. How to stop spamclicking (for things like attack), is there any function for it?
@1upIndie
@1upIndie 9 ай бұрын
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
@tampuruangflash5922 Жыл бұрын
Thank you
@1upIndie
@1upIndie Жыл бұрын
You are more then welcome!
@julkiri9441
@julkiri9441 10 ай бұрын
Hello, I'm having trouble making the ping-pong animation
@1upIndie
@1upIndie 10 ай бұрын
What is a ping-pong animation?
@julkiri9441
@julkiri9441 10 ай бұрын
@@1upIndiewhen it reaches the last frame it plays the animation in reverse and when it reaches the first frame it plays it normal
How to make a world map [Game Maker Studio 2 | Basics]
10:39
1up Indie
Рет қаралды 6 М.
How To Make Platformer Movement in 5 Minutes
5:27
GameMaker
Рет қаралды 90 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
🔴Game Maker Studio 2 | Basics - Parallax scrolling
6:16
1up Indie
Рет қаралды 24 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
I tried coding my own graphics engine
4:23
Garbaj
Рет қаралды 219 М.
How To Animate Objects In GameMaker
7:11
GameMaker
Рет қаралды 19 М.
GameMaker Studio 2 - How To Import & Animate Sprites Beginner Tutorial
10:32
Let's Learn This Together
Рет қаралды 168 М.
What size should your assets be? | HD 2D GAME ART
12:10
Nonsensical 2D
Рет қаралды 152 М.
How Do Game Devs NOT Overscope??
9:04
Green Light Dev
Рет қаралды 13 М.