Login
Community
DARK THEME

So, I added a few lines of code, and it broke my game.

I tried refreshing, deleting the code, and checking it for errors. I can't find anything that can break the game, yet, it is broken. Here the unlisted version https://microstudio.dev/i/JustNitro/life/

Can you be more specific about what isn't working that should be working?

I noticed that you organized all sprites in folders. It looks like that with the new update you have to add the folder name to the sprite name.

Only had time to try here, the cat shows up now:

  screen.clear("rgb(0,0,120)")
  
  //other
  screen.drawSprite("npc/cat", 120, 15,40)
  if inStore == true then drawStore() end
  if inInv == true then drawInv() end
  

I am not sure if it is supposed to work like that :)

Yep, for sure that what it is, makes sense.

Just type 'sprites` in the console window after you started the game once and you see them all:

>sprites
object
  building/apartment = [object]
  building/insideapartment = [object]
  building/insideronalds = [object]
  building/insidestore = [object]
  building/ronalds = [object]
  building/store = [object]
  icon = [object]
  items/bottle = [object]
  items/burger = [object]
  items/fries = [object]
  items/pop = [object]
  items/ronaldmeal = [object]
  items/smokes = [object]
  npc/cat = [object]
  npc/ideahobo = [object]
  npc/storeperson = [object]
  player/downmovement = [object]
  player/happy = [object]
  player/hdownmovement = [object]
  player/hleftmovement = [object]
  player/hrightmovement = [object]
  player/hupmovement = [object]
  player/leftmovement = [object]
  player/player = [object]
  player/rightmovement = [object]
  player/smoke = [object]
  player/upmovement = [object]
end

Thank you so much Tinkersmith! I probably should've realized that now that I think of it lol.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community