This tutorial was SUPER helpful as someone very new to coding. This should be included on the product page!!
@PixelatedPope Жыл бұрын
Yeah... it probably should be!
@RistrayGR2 жыл бұрын
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.
@Mackievellian2 жыл бұрын
I've been using Truestate for a couple of months now, it's great. Very flexible. Another great video, man.
@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.
@jugibur21175 ай бұрын
Thanks, really great, I've learned a lot!
@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 Жыл бұрын
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
@ReachForTheBiscuit4 ай бұрын
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?
@ReachForTheBiscuit4 ай бұрын
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 ?
@PixelatedPope4 ай бұрын
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.
@silvastephen4 ай бұрын
@@PixelatedPope thank you!
@NoahNCopeland2 жыл бұрын
loving these videos! question: why do you use snake_case for the key input variables? when everything else is camelCase
@PixelatedPope2 жыл бұрын
You'll find out next week! 😅 Spoiler: it was an accident. I correct it next time.
@AstriaTVTruthExposed5 ай бұрын
Im trying to download truestate but the itch page never opens tried on multiple devices
@PixelatedPope5 ай бұрын
Itch appears to be down at the moment. Try again in a bit
@AstriaTVTruthExposed5 ай бұрын
Just noticed that 🤦 went through troubleshooting my laptop resetting dns ect 😂 @@PixelatedPope
@prodvichum4 ай бұрын
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❤
@PixelatedPope4 ай бұрын
You should join the Gamemaker discord server. I'm often available there and can help you troubleshoot it live. discord.com/invite/gamemaker
@DragoniteSpam2 жыл бұрын
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.
@PixelatedPope2 жыл бұрын
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