i cannot figure out
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Phil_

how can i get a simple rectangle or filled rectangle to apper on my map. Also how do i get an image to apper on my map.



Posted on 2002-12-29 17:52:48

Omni

As far as I know you can't. Rectangle and Image blitting commands only accept screen coordinates, not map coordinates. I'm even having to write my own library to do that.

You might want to come to the Vergesource, as Verge-rpg isn't getting much traffic right now.



It is not wrong to not understand, for we are all ignorant, but neither is understanding pointless.

Come visit www.verge-net.com!

Posted on 2002-12-30 13:09:56

choris


void my_rect()
{
rectfill(entity.x[player]-xwin,
entity.y[player]-ywin,
entity.x[player]+16-xwin,
entity.y[player]+16-ywin,
32);
// this will draw your player entity's hotspot
// rectangle on the screen
}

Then call hookretrace(my_rect) in your map vc for a lovely example. To draw using map coordinates just use the pixel coords (ie tx*16 = x) and subtract xwin/ywin. If you need a simpler explanation ask again!



Posted on 2002-12-31 20:30:39


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.