C
CerebralThief
Guest
I am trying to spawn enemies on a randomly generated terrain using a tileset but it says I need a parenthesis where I already have one.
Code:
// Randomly Spawn enemy
if (!instance_exists(obj_enemy))
{
instance_create(random(tileset_main, 0, 64, 64, 64, x, y, 100000.x),random(tileset_main, 0, 64, 64, 64, x, y, 100000.y),obj_enemy);
}
It says I need a parenthesis right after 100000.x but I can't tell why. If I put one there or anywhere else it doesn't fix it. Please help.
Code:
// Randomly Spawn enemy
if (!instance_exists(obj_enemy))
{
instance_create(random(tileset_main, 0, 64, 64, 64, x, y, 100000.x),random(tileset_main, 0, 64, 64, 64, x, y, 100000.y),obj_enemy);
}
It says I need a parenthesis right after 100000.x but I can't tell why. If I put one there or anywhere else it doesn't fix it. Please help.