Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Lukasnob

5
Posts
2
Topics
2
Followers
1
Following
A member registered Jun 27, 2022 · View creator page →

Creator of

Recent community posts

well this was addicting... my high score is 12.  Rule number one: dont run towards the stones dumbass run away from them. good game

it was the problem thank you very much, would never have noticed it by myself. great tutorial btw

unswap_tile(x,y)

attempt to index local  ´x´  (a number value)

My code:

--animation code

function toggle_tiles()

 for x=mapx,mapx+15 do

  for y=mapy,mapy+15 do

   if (is_tile(anim1,x,y)) then

    swap_tile(x,y)

    sfx(3)

   elseif (is_tile(anim2,x,y)) then

    unswap_tile(x.y)

    sfx(3)

   end

  end

 end

end


Unswap code:

function unswap_tile(x,y)

 tile=mget(x,y)

 mset(x,y,tile-1)

end