getObsPixel
Displaying 1-6 of 6 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
RageCage

getObsPixel doesnt seem to work... no matter what it will always return a 1...

can anyone disprove or confirm this?

Posted on 2004-05-01 22:15:19

Overkill

I can disprove this. Though, I'd rather not release my work just yet... If you're only checking the same coord, there's a good chance nothing will change. And the GetObsPixel() is in map pixels not tiles.

Posted on 2004-05-01 23:28:13

RageCage

oh I want lookign for proof, I believe you, I was just wondering if anyone else got it to work... I guess I'll have to try to figure out why its not working...

Posted on 2004-05-01 23:44:36

RageCage

getObsPixel doesnt apply to entity hotspots right?

Posted on 2004-05-03 03:18:56

Overkill

Well, the entity.x[] and .y[] are parts of the hotspots. If you wanted to get the right and bottom of the sprite to examined for obstructions it'd be something like:

x2=entity.x[]+entity.hotw[];
y2=entity.y[]+entity.hoth[];

Hope that helps.

Posted on 2004-05-03 13:04:36

RageCage

yeah, I know about the entity variables but I just dont wan to have to check every entity's hot spot square for what I'm doing... I'll figure something out though. I can proabbly just find all the entitys in a rect from point A to B and constantly only check those entities...

here's a question.... would there be a way to mathematically tell if a entity's hotspot square intersects with a givin line?

Posted on 2004-05-03 13:42:52


Displaying 1-6 of 6 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.