• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

HTML5 I dont understand this! error (RESOLVED)

Winko

Member
I am trying to change a sprite of an object using: sprite_index

The two sprites measure the same. Why do I get this error? is that before the update I believed to change sprite in this way. Please help me I'm stuck.




############################################################################################
ERROR in
action number 1
of Step Event0
for object obj_enemigotuto:

camera_create() - doesn't take any arguments
at gml_Object_obj_enemigotuto_Step_0 (line 69) - sprite_index(spr_basicoenojado)
############################################################################################
gml_Object_obj_enemigotuto_Step_0 (line 69)
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
sprite_index is a variable not a function... Do this (and maybe check the manual ;) ):

sprite_index = spr_basicoenojado;
 
Top