another question

BlitzPlus Forums/BlitzPlus Programming/another question

ngi(Posted 2004) [#1]
How do I make it to scroll the whole image? for example I am making a game like age of empires , and I want it to scroll when I click the mouse button and drag it .

I dont know if u understand me , perhaps I aint explaining well I am gonna explain it again.

I am making a game , but the screen is not enough to view it all so I want the game to scroll whenever i drag it with my mouse.

I hope thats better explained lol

well thx


aab(Posted 2004) [#2]
Uz the Origin command!
for example: origin x,y

if mouseX()>x+g_screenwidth-15
x=x-1
if mouseX()<x+15
x=x+1
if mouseY()>y+g_screenwidth-15
y=y-1
if mouseY()<y+15
y=y+1

this way, if the mouse is near the edge of the screen, the origin of all coordinates moves in that direction: unbeleivabely usefull!