Category : game-engine

How can I for Ex. call update functions of all class that inherit from gameobject base class, by adding them to a vector. Without hardcoding like this: PlayerController playercontroller; //Assume PlayerController Is Inheriting From GameObject playercontroller.AddToList(); Or something in the constructor because you won’t know how many scripts the user is going to create Source: ..

Read more

I am doing university work for a game engine and we needed to do an agnostic code. They told us to do the rest on our own and I am on the right track however, when I try and pass the parameters for the function it says it doesn’t pass for the arguments? This I ..

Read more