|
Post by quadriseene on Dec 10, 2004 23:07:23 GMT -5
1)is there a way i can put an entire picture (a map) in-game while your still playing and only see a small portion of it like the map at the top of the screen of runescape? 2)and how can i make an object stay in the veiw all the time like the sidebar in runescape? ;D in code or d&d thanks!
|
|
|
Post by IsmAvatar on Dec 10, 2004 23:11:52 GMT -5
If you just want to cut out a piece and put it up there, use a view. If you want a map, you can either use scaled views, or you can do some mathematical calculations. draw_point(view_left+view_width-x/100,view_top+y/100)
to make something appear with the view, just use the view_left, view_top, view_width, and view_height variables, like the Manual says.
draw_rectangle(view_left,view_top,view_left+view_width,view_top+view_height,1)
The above simply draws a rectangle over the view (obviously only an example, you'd rarely want to do that).
|
|
|
Post by quadriseene on Dec 10, 2004 23:19:25 GMT -5
i want it to be embedded behind the game and whenever you move it shows where you are on the part of the map plus wat manual? the help file?
|
|
|
Post by IsmAvatar on Dec 11, 2004 9:07:20 GMT -5
yes. every command for GM is found in the help file.
|
|
|
Post by quadriseene on Dec 12, 2004 0:03:44 GMT -5
erm sorry, i wanted to make an object stay within the veiw not draw_rectangle.....
|
|
|
Post by IsmAvatar on Dec 12, 2004 10:41:57 GMT -5
... draw_rectangle(view_left,view_top,view_left+view_width,view_top+view_height,1)
The above simply draws a rectangle over the view (obviously only an example, you'd rarely want to do that).
simply examine it and learn from it.
|
|
|
Post by quadriseene on Dec 13, 2004 21:45:01 GMT -5
but do you no exactly how to make an object move within the view? i cant work from a rectangle to an actual object....
|
|
|
Post by shad0w on Dec 14, 2004 1:05:00 GMT -5
GM6 allows for you to embed an entire view and use it as a minimap.
|
|
|
Post by quadriseene on Dec 15, 2004 23:59:22 GMT -5
im in gm 5.3a.... edit: plzzzzzzzz............ i need it answered.....
|
|