U
Unofficial Horse Extract
Guest
I am trying to make one of those tiled puzzle games like Huniepop, but I can't figure out how to randomize the tiles. I tried this code first in a create event:
However, the image only defaults to Kiibo, and I don't think this takes into account individual objects of the same type. Any help would be appreciated.
Code:
var character;
character = random(2);
if character == 2{
sprite_index = placeHolderTile2;
}else if character ==1{
sprite_index = placeHolderTile;
}else{
sprite_index = Kiibo;
};