I have an object named pPlayerEntity which contains all the keyboard input movements and some information about a player state machine I have set up. My goal here is to have the player control multiple different little characters throughout the game. I thought I would do this by having the player input controls in a different object (pPlayerEntity) and then having the controllable characters be children of this object to make my life easier. Unfortunately, this seems to be the opposite. The child object does not inherit any of the code from pPlayerEntity and I just have no idea what's going on. I even messed with the code of the parent to see if Game Maker would give back an error and nothing. It seems the child object is not running any of the code of the parent. And by the way, no the child object has no code of itself, so it should definitely just be running the code of the parent. Even so, I have put in the Inherit code command just in case, and still nothing.
Any insight?
Here is some screenshots of the objects in question and some of the code Im trying to inherit. Aswell as what i see when running it:
Any insight?
Here is some screenshots of the objects in question and some of the code Im trying to inherit. Aswell as what i see when running it:
Attachments
-
53.1 KB Views: 30
-
144.6 KB Views: 33
-
175.6 KB Views: 30
-
160.3 KB Views: 30
-
176.3 KB Views: 31
Last edited: