Submitted by micha on Sat, 08/24/2013 - 11:15
Got a little frustrated with GML earlier, but back on track now. Took me nearly an hour to figure out how to reference an (already created) object outside of that object. Turns out that every instance of an object has a number that is a bit overloaded in GML to identify it to GM. In code, the variable is "id".
For instance, you could combine that with the with() function to assign another object's target variable to yourself.
var temp_target = id;
with(obj_Dude){
target = temp_target;
state = "Moving";
}
Submitted by micha on Sat, 08/24/2013 - 02:11
Calling it a night. Mainly fighting the internals of GameMaker to try and figure out what it calls things. The DnD is great, but sometimes I need to fine-tune something in GML and need to get object references, etc. I'll figure it out tomorrow. For now, I've got "animals" and a dude.
Dan spent a good while working on pre- and post-action sounds and three-frame versions of a decently large number of animals (10+). We're currently working out how the intro and game will interact to tell the story and remind the user of the use of the theme.
Submitted by micha on Fri, 08/23/2013 - 22:55
My first LD. Finally getting started with the coding portion of the game. Theme is "10 Seconds". Working with GameMaker for the sheer ease of prototyping. Dan's already started on creating the awesome sound effects over at his place. Let's do this.
Pages