Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Showing Lots of sprites with one function call and a loop

pacpac
edited November 16 in Questions Posts: 79

How can you get it so that one sprite call can get a group of sprites to show?

I can’t figure it out mine will only have one up at a time.

Please help me.

Comments

  • dave1707dave1707 Mod
    edited November 16 Posts: 7,155

    @pac Try this example using multiple for loops.

    displayMode(FULLSCREEN)
    
    function setup()
    end
    
    function draw()
        background(40, 40, 50)
        for x=1,30 do
            for y=1,40 do
                sprite("Planet Cute:Character Horn Girl",x*40,y*40,40)
            end
        end    
    end
    
  • pacpac
    Posts: 79

    Thanks it works I will change May code to work thanks

  • pacpac
    Posts: 79

    Hey thanks again I changed my code and now it works thank you thank you thank you

Sign In or Register to comment.