You can add a texture that repeats:
local texture = Texture.new("image.png", true, {wrap = Texture.REPEAT})
And make a bit map that points to that object, but how do you use this in practice? Do you just change the width/height of the bitmap to see the repeated pattern? If so how?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
https://deluxepixel.com
Comments
http://giderosmobile.com/forum/discussion/1635/wrap-texture-repeat/p1
basically Shape only
https://deluxepixel.com
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
tSea=Texture.new("sea.png",false,{wrap=Texture.REPEAT})
tBigSea=TextureRegion.new(tSea,0,0,1023,1023)
seaLayer=Bitmap.new(tBigSea)
seaLayer:setAnchorPoint(0.5,0.5)
seaLayer:setPosition(width/2,height/2)
seaLayer:setScale(0.57)
stage:addChild(seaLayer)
Now I'm adding a semi transparent version above it to the real map and my game should have a nice animated sea. If it works...
https://deluxepixel.com
https://deluxepixel.com
then you will see it scrolling next to (under) the land. If you like it then give it 5* in a review.
https://deluxepixel.com
Likes: SinisterSoft
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
https://deluxepixel.com
https://www.facebook.com/appcenter/w-r-w-m
(14 to 20 seconds in)
https://deluxepixel.com