Home Forums Development discussions Questions Reply To: Questions

#661
Mury
Participant

Hey I have 3 questions

1)Where can i see the src for everything that is 2D?
2)Besides function onSceneUpdate is there something similar but for draw?
3)I have this code:

dofile(“SDK/Graphics2D.lua”)

— Load a sprite
sprite = Sprite(0,0,180,40,”maps/human.png”, “”)

— Add sprite to the main canvas
mainCanvas:addWidget(sprite)

function onSceneUpdate()
— Rotate sprite by 2° every frame
sprite:rotate(2)
end

why does it not show me my little spritesheet?