ID:273921
 
Well, i know how to use a second map as a hud, my code works perfectly, but i have some issues...


1: How do i make something like a "zoom"? Something like a view but for that second map.
2: Moving map view, something like locations but just moving the view in second map.

Yes, just that. If someone could answer me that :) I hope you understand me :/
I don't think you can do what you want in exactly the way you want to.
The way second maps work, is they change size to always fit their contents. So, if you wanted to move stuff around, you'd actually have to remove items from the screen.

This can be handled several ways, depending on how you're putting stuff in the screen.
In response to Complex Robot
I basically don't want to move stuff, i want to move the "eye" . Which is like a client.eye (But it's not?)

I'm putting objects like this:

client.screen += new/obj/lalaal("SecondHUD:1,1")
In response to Ocean King
Moving stuff or moving the 'eye' are but the same thing with a different name.
When you move the eye, it's essentially the same effect as moving everything in the entire world the opposite direction that the eye moved.
That's basically what you're doing here, since there is no eye.

And, like I said, there's different ways to go about it, depending on to what extent you need it to move and what you're putting on the screen in the first place.

[EDIT]
Also, I hope that's not actual code. The first parameter of mappable objects is reserved for their initial location. If you need them to have no location, then you should pass null, or use named arguments.
In response to Complex Robot
For now i'm just placing a background (Which fits all screen). Basically i made this question since i want to move the 'eye' and zoom to some part of the background.

I think i explained correctly. I don't know :/
In response to Ocean King
If there's only a single object, I think you won't be able to move it around or zoom. I think you might be able to get some sort of zoom effect by changing the icon-size property of the map control, though.

Another way would be to use actual icon operations, such as Crop() to crop out the exact part you want it to be zoomed in on. However, icon operations can be pretty taxing and aren't something you want to be doing for that sort of thing.