GameMaker: Studio

GameMaker: Studio

View Stats:
Error! Assignment Operator Expected!
this is my code and it says Assignment Operator Expected at line 5 pos 2. Help please!
//States
scr_enemy_static

//Variables
hp = 100
enemySpeed = 2;
aggroRange = 120;
< >
Showing 1-2 of 2 comments
Blind Jan 13, 2016 @ 6:31pm 
what is line 5? If it's as is then it might be the lack of a semi-colon at the end of hp=100
Sistermatic™ Jan 14, 2016 @ 11:43am 
scr_enemy_static is the problem based on what you pasted.

If it's script it should read scr_enemy_static(); or scr_enemy_static(var1,var2) etc...

If it's a variable it has to equal something. (called an assignment)

eg: scr_enemy_static = 0;
Last edited by Sistermatic™; Jan 14, 2016 @ 11:43am
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jan 13, 2016 @ 6:17pm
Posts: 2