• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows [SOLVED] Simple code error

B

BeastyBoy

Guest
Here's the code, and for some reason, the object "obj item" won't get the variable "item_id". I am running windows YYC but the same error occurs in the normal windows export.

xx=argument0
yy=argument1
block_id=argument2

item=instance_create(xx,yy,obj_item)

if block_id="forest dirt" {
item.item_id=0
}
else if block_id="stone" {
item.item_id=1
} else {
item.item_id=1
}


never mind, found the problem :)
 
Last edited by a moderator:
Top