Sometimes i do backlog on waffle.io, sometimes i lose myself into handwritten flying papers... I'm still a bit irregular on commits and updates, but i found it well balanced for now. I'll try to clean this and organize before sharing, but i'm on it ;)
BTW here are some notes on additional controllers created at the very start.
obj_get_and_set_sprite handles others that are not associted with sprites. That's sad, especially to figure out what controller or other invisible would be missing in the game ! There is a little trick here :
//In create and step event of obj_get_and_set_sprite
with all
{
if object_get_sprite(object_index)=-1 ///no sprite set ?
{ object_set_sprite(object_index,spr_blank) //De base : sprite blanc object_index.sprite_index = object_get_sprite(object_index);
}
}
////!\ "object_index.sprite_index" ==> important : if objects are created at the same time they'll have the same ID and only one will receive the default image we want ALL object instances to have. Useful.
Also at this point i create an input controller in order to prevent messy code with inputs from everywhere in events, and game's level controller ; it handles the state of the game (played, pause, in a menus etc...) and behaviors depending on rooms (for exemple player,game state, starting point etc...)
There are also sound control object, to handle 3d sound and .ogg stream, i may come back on this later as now sound were really added for now ;) Until now i had headaches with sound controls but i'm healing... Stereo and stream seems to work at least !
The real interesting stuff to me comes next with an object that handles object parameters into array and allow easy debugging and on the fly value change, and the level builder i'm working since too long :]
But as I said i'll explain this later !
BTW here are some notes on additional controllers created at the very start.
obj_get_and_set_sprite handles others that are not associted with sprites. That's sad, especially to figure out what controller or other invisible would be missing in the game ! There is a little trick here :
//In create and step event of obj_get_and_set_sprite
with all
{
if object_get_sprite(object_index)=-1 ///no sprite set ?
{ object_set_sprite(object_index,spr_blank) //De base : sprite blanc object_index.sprite_index = object_get_sprite(object_index);
}
}
////!\ "object_index.sprite_index" ==> important : if objects are created at the same time they'll have the same ID and only one will receive the default image we want ALL object instances to have. Useful.
Also at this point i create an input controller in order to prevent messy code with inputs from everywhere in events, and game's level controller ; it handles the state of the game (played, pause, in a menus etc...) and behaviors depending on rooms (for exemple player,game state, starting point etc...)
There are also sound control object, to handle 3d sound and .ogg stream, i may come back on this later as now sound were really added for now ;) Until now i had headaches with sound controls but i'm healing... Stereo and stream seems to work at least !
The real interesting stuff to me comes next with an object that handles object parameters into array and allow easy debugging and on the fly value change, and the level builder i'm working since too long :]
But as I said i'll explain this later !