here check out my problem

Posted by dswscorpion on Jan. 22, 2012, 8:25 p.m.

hey here is my problem tonight

first off here is my objects

smhouse1 when clicked with mouse left global.smhouseclicked=1

smhouse2 when clicked with mouse left global.smhouseclicked=2

and here is my problem they are both blowing up

in the event of my dynamite stick ) push mouse left button

if global.smhouseclicked=1

global.power+=100

with(smhouse1){instance_change(ground1,true);}

instance_create(ground1.x,ground1.y,explosion);

if global.smhouseclicked=2

global.power+=100

with(smhouse2){instance_change(ground2,true);}

instance_create(ground2.x,ground2.y,explosion);

Comments

Rob 12 years, 10 months ago

AhahahahahahahAHAHAHAHAHHAHA!

Didn't you say that you've been a game developer for years?

dswscorpion 12 years, 10 months ago

omg i forgot the else, sorry all

dswscorpion 12 years, 10 months ago

thanks steven

Rob 12 years, 10 months ago

Quote:
omg i forgot the else, sorry all

You're even more stupid than I thought. You didn't use fucking curly braces. That's what the problem was.

Why the fuck are you using brackets for your instance_change() though? Seriously? It's one line. I wouldn't care much about that, but you're using them there but are forgetting them where they actually fucking matter.