Let's Game Dev - 04 - Character States and Animations using TrueState

  Рет қаралды 2,295

PixelatedPope

PixelatedPope

Күн бұрын

Пікірлер: 25
@genorpg20
@genorpg20 Жыл бұрын
This tutorial was SUPER helpful as someone very new to coding. This should be included on the product page!!
@PixelatedPope
@PixelatedPope Жыл бұрын
Yeah... it probably should be!
@RistrayGR
@RistrayGR 2 жыл бұрын
It's so nice to see a senior dev having super simple issues as well. "Collisions should be so easy! Why is it goofing up? Am I missing something painfully basic?!" Wonder if the room changes weren't showing up because you still had the debugger window open? Noticed you hit the debugger instead of just regular play earlier. Anyways, thank you so much for these videos without editing. They're the only videos I look forward to right now.
@Mackievellian
@Mackievellian 2 жыл бұрын
I've been using Truestate for a couple of months now, it's great. Very flexible. Another great video, man.
@TGameDev
@TGameDev Жыл бұрын
Started using Truestate around when it first dropped, and now there isn't a project I don't use it in. Extremely useful and simple to use.
@jugibur2117
@jugibur2117 5 ай бұрын
Thanks, really great, I've learned a lot!
@ZanarkandStarplayer
@ZanarkandStarplayer Жыл бұрын
Hi Pope! I love this style of tutorial format. Feels almost mentor-esque and leaving the debugging in was super helpful. I'm new to game programming (but not programming as a whole), so I did feel a bit peeved when I had to duplicate a ton of code in the FSM. You mentioned in passing other patterns that could possibly be used to deal with that. Do you happen to know the names of some of these patterns so I can research them? Thanks for the content, this was super helpful!
@PixelatedPope
@PixelatedPope Жыл бұрын
In all honesty, I haven't spent much time looking into the alternatives, and I'm not sure how "compatible" they would be with GM. Coroutines, for example, can be a more "multithreaded" approach to state management, but as GM doesn't do anything asynchronously, it'd probably be more work to implement a similar system than it would be worth. Would be a good question for the GM discord server's #gamedev channel. I'm sure you would get lots of interesting opinions on the topic
@ReachForTheBiscuit
@ReachForTheBiscuit 4 ай бұрын
This is probably a stupid question, but if I were to implement the same movement code you have in the state machine, but include top down movement (vSpeed movement), could it be modified in seamlessly? I was thinking of just adding what sprites would be set for the up and down sprite, but wasn’t sure where I should include it in the stateWalk? Would I just include it below the if (!right_key && !left_ke… Along with a !up_key && !down_key below the code before the break? And if that’s the solution, would I just include another draw event to include the up and down sprites?
@ReachForTheBiscuit
@ReachForTheBiscuit 4 ай бұрын
Or would it be easier to set all of that in a controls script with all the image sprites set to each direction, call that script in the create and step event of the player, but use it as a reference for what to replace/add for (!right_key.. etc ?
@PixelatedPope
@PixelatedPope 4 ай бұрын
I wouldn't recommend using this movement code for top down. You should check out my top down movement and collision system on Itch. It's free and it works similar to this (whole number only coordinates) and it works great with TrueState.
@silvastephen
@silvastephen 4 ай бұрын
@@PixelatedPope thank you!
@NoahNCopeland
@NoahNCopeland 2 жыл бұрын
loving these videos! question: why do you use snake_case for the key input variables? when everything else is camelCase
@PixelatedPope
@PixelatedPope 2 жыл бұрын
You'll find out next week! 😅 Spoiler: it was an accident. I correct it next time.
@AstriaTVTruthExposed
@AstriaTVTruthExposed 5 ай бұрын
Im trying to download truestate but the itch page never opens tried on multiple devices
@PixelatedPope
@PixelatedPope 5 ай бұрын
Itch appears to be down at the moment. Try again in a bit
@AstriaTVTruthExposed
@AstriaTVTruthExposed 5 ай бұрын
Just noticed that 🤦 went through troubleshooting my laptop resetting dns ect 😂 ​@@PixelatedPope
@prodvichum
@prodvichum 4 ай бұрын
Hello I don't know if you still replying to this, but im having a problem, the truestate works perfect on my player, but when i want to start using it on an enemy, it says that stateSwitch is not defined, but i followed the same steps as with the player. Thank you for this amazing tool btw❤
@PixelatedPope
@PixelatedPope 4 ай бұрын
You should join the Gamemaker discord server. I'm often available there and can help you troubleshoot it live. discord.com/invite/gamemaker
@DragoniteSpam
@DragoniteSpam 2 жыл бұрын
19:51 Super dumb hack that looks like you shouldn't be able to get away with, but generally can: image_xscale = faceDir; draw_self(); image_xscale = 1; Whether or not this constitutes "good code" or not, I will not comment.
@PixelatedPope
@PixelatedPope 2 жыл бұрын
Yeah, it makes sense. I generally am not a fan of code that needs to be "reset". The only one I really make allowances for is draw_set_alpha
@miss.antidote
@miss.antidote 11 ай бұрын
Does it work for the newest version please?
@PixelatedPope
@PixelatedPope 11 ай бұрын
Last time I checked, yes
Let's Game Dev - 05 - Ultra basic camera setup
11:01
PixelatedPope
Рет қаралды 1 М.
3D Environment MasterClass | From CONCEPT to FINAL: Submission Review
3:51:51
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
Math for Game Devs [2022, part 1] • Numbers, Vectors & Dot Product
3:57:35
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,2 МЛН
Let's Game Dev - 01 - The Most Important Video of the Series
15:08
PixelatedPope
Рет қаралды 2,5 М.
The 100 Games That Taught Me Game Design
2:13:14
Game Maker's Toolkit
Рет қаралды 1,4 МЛН
How To Make a FIGHTING GAME In Godot! [Complete Course]
29:00
GMS2 Cameras: As Simple as Possible
13:27
PixelatedPope
Рет қаралды 66 М.
I Used Godot For 100 Hours, Here’s What I Learned
35:09
LazyAlarm
Рет қаралды 1,2 МЛН
Let's Game Dev - 02 - Basic Room Transitions
32:40
PixelatedPope
Рет қаралды 1,8 М.
How I Beat The Password Game
39:53
Bog
Рет қаралды 2,5 МЛН
Pope Plays - Bullet Inferno
27:49
PixelatedPope
Рет қаралды 2,2 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН