Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • 206019542.mp4
  • Lecture 18 - Implementing StateStack.zip

Missing 1 full-res photo, 1 video, 1 file, as this post has not yet been imported.

Content

Hey everyone, in this video, we'll implement a StateStack (State Machine) that will allow us to handle different states in our game. We'll need the StateStack for implementing the Battle System.

I hope you like the video :)

Files

Previews only

Comments

Nour Saidana

I noticed you didn't add "owner" in some of the functions in the statemachine class. Does it make a difference? For example "CurrentState.Execute()" instead of "CurrentState.Execute(owner)" or "Exit()" instead of "Exit(owner)".

gamedevexperiments

Since it's passed to the Enter function, we can just cache it to a private variable and use it through out the state class, no need to pass it to all three functions.