i have:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
entity={
physical = false,
timer=0,
physical = true,
visual = "sprite",
visual_size = {x=4,y=4},
textures = {"image.png^[makealpha:128,0,0^[makealpha:128,128,0"},
sprite_div = {x=6,y=1},
initial_sprite_basepos = {x=0, y=0},
--
lastpos={},
collisionbox = {-0.8,-0.8,-0.8,0.8,0.8,0.8},
full = false,
attached = ""
but where do i put this part?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
setsprite({x=0,y=0}, 1, 0, true)
currently i have it in entity.on_step as:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
entity.on_step = function(self, dtime)
self.object:setsprite({x=0,y=0}, 1, 0, true)
but it doesn't display right. i see the whole image (not just the tile i want to) and it rotates so that the image is always facing me
how to fix this?