So, i have no previous knowledge of any kind of programing language except a week or so of Gamesalad(i made a game, but then realized i had pay 90 bucks for a profile or something if i wanted it tested. I decided to drop it for a more open source option.) and i read the first ten or so pages of "C++ for dummies" so far. I'm hoping to get more into it with time.
Anyway, i set it so that when "human"(my player) collides with "enemy1" then, script editor,
- Code: Select all
healthbar.width=healthbar.width-50;
Like most program i write, it didn't work. The health bar stayed the same size. i wondered what the problem was, so i just just went to my healthbar and said that when i press tab,
- Code: Select all
width=width-50;
didn't work either. It's probably some really simple thing I'm missing, but i couldn't find the answer on the forums. At least, not an answer i could comprehend.