I tried this but I get the same error, I also tried doing an if with my G.sprite to not render it if null and then the problem becomes the {x=x, y=y}, sorry, code that is in my main.lua right now
local oldmainmenu = Game.main_menu
function Game:main_menu(change_context)
local gm = oldmainmenu(self, change_context)
G.collector_sprite = SMODS.create_sprite(0, 0, G.CARD_W, G.CARD_H, 'lilithsb_CollectorCard', {x = x, y = y})
return gm
end
SMODS.DrawStep{
key = 'collector_extra',
order = -9,
func = function(self)
G.collector_sprite.role.draw_major = self
G.collector_sprite:draw_shader('dissolve', nil, nil, nil, self.children.center)
end,
conditions = {vortex = false, facing = 'front'},
}







i'm desperately throwing everything at the wall to try and see what will catch the things i need it to catch and it's not doing it