Really got everything solved so far from just reading through posts or guides but this really throws me off.
I am working on a little game with playermodels moving across a board so i made the function "movePlayer".
myVar gets the number of the field it has to move to, using IDs for that because didnt figure out how to otherwise and playervar
is the name of the image which is a string. It also has to check if player moves above the Goal Field which has the id 41.
Whenever i run this i tells me that the object does not exist. Am i missing something?
Code: Select all
on movePlayer myVar,playervar if myVar < 41 then move image playervar to the location of image id myVar else if myVar > 41 then move image playervar to the location of image id 41 end if end movePlayer