Forum Archive

Help with scene.image

sashadkiselev125

How do I simply show a built in image in scene without layers with simple coordinates

Sebastian

Just use the image() function.
Call it like this inside the draw function:

image("image_name", x, y, w, h)

I've added a simple working example below.

from scene import *

class MyScene (Scene):
    def setup(self):
        pass

    def draw(self):
        background(0, 0, 0)
        image('Alien_Monster', 200, 200, 100, 100)

run(MyScene())
sashadkiselev125

Thank you Sebastian I wa putting image('name',x=200,y=200)