srooling box2d world

Previous topic - Next topic

djtoon

hi
im making a throw ball game for the iphone

my level is twice as big as the landscape mode in the iphone

im a flash programer and in flash i could create an "holder" object and move that where all the scene other art was as child object of that world

is there an someting difrent in glbasic or is there a way to set screen scroll x,y?

10x

Cliff3D

#1
You could use CREATESCREEN to create a virtual screen twice the size of the HW screen, USESCREEN to paint to it, then USESCREEN -1 to switch back to the main screen. Use POLYVECTOR to copy a "window" from the virtual screen/sprite to the main screen.

djtoon

well i think i just did it with viewport :)
dony know if it works on the iphone but ill cheak

Cliff3D

Ah, viewports does less than I thought you wanted - but if it works that's great :D