I am very new to Game Maker and while starting a project this is how I setup things:
I had a "character" object that had no sprite and on Creat defined some variables like:
walking_speed = 2;
walking_right = false;
walking_left = false;
facing = "left";
//and some more
on the Step event I had:
if (walking_right) {
x += walk_speed;
facing = "right";
}
if (walking_left) {
x -= walk_speed;
facing = "left";
}
then I created an object "warrior" whose parent was "character" that had a sprite, and finally an object "player" whose parent was "warrior" and that had
if (keyboard_check(vk_right))
walking_right = true;
else
walking_right = false;
if (keyboard_check(vk_left))
walking_left = true;
else
walking_left = false;
and the "Call Event" action, in its Step event.
When I place the player object in a Room, I don't see the warrior sprite and nothing happens. I'm probably doing something fundamentally wrong and warrior's Draw event isn't being called. Can anyone explain to me where I'm messing up?
Sorry for the long post!