Entity troubles
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
gungnir

Here's the deal. I have a map and I've placed a couple of entities on it. These entities are only 16x16, and their hotspot is not the full size of a 16x16 frame (it's 12x8). Now, when the entity is placed on the map, it appears to be placed at it's hotspot, rather than the top of the entity. As well, when 'wandering', it appears that the entity moves a tile at a time (16 pixels). Now, this causes the entity to freeze if it gets to an obstuction because it moves 16 pixels at a time, but can only move a few because it's been offset by the hotspot and is not on a tile boundary.

This link contains a sample of the bug... just wait for the moving entity to hit an obstacle and you'll see what I mean.

ent_trouble.zip

Anyways, is this idea of an entity being placed according to it's hotspot a feature or a bug? It looks like entity placement has been implemented assuming chr files will be bigger than 16x16 or that no hotspot will ever be less than 16x16. Then again, maybe it's not the hotspot thing that's the problem... perhaps it's because the entities move a tile at a time rather than a pixel at a time.

So, should I just work around this or do I wait for it to be fixed (either the hotspot thing or pixel accurate movement for entities).

As well, please forgive me if this has already been adressed somewhere... it's not like there's a working search function yet :)

Posted on 2004-08-20 21:18:32 (last edited on 2004-08-20 21:24:30)

vecna

Well I'm at work right now, but I'll take a look at your zip when I get home. Posting a zip like that which clearly demonstrates the problem goes a long way toward getting me to fix anything ;)

I havent intentionally meant for hotspots to always be 16x16 or larger but its certainly possible that parts of the code break when they're less than 16x16 since I never tested smaller hotspots, only the bigger ones cause Grue is all "bigger hotspots!" and no one has ever approached me about smaller hotspots before. It is intended for under 16x16 hotspots to be doable.

Its sounds like the problem is that the wander routine should have never moved into the partially obstructed tile to begin with. It is supposed to consider any partially obstructed tile a no-go zone to avoid this exact situation, and since they don't wander diagonally.

Edit: grue, fix the boards eating posts with less than signs in them! >:F

Posted on 2004-08-20 21:29:10 (last edited on 2004-08-20 21:31:18)

gungnir

Heya... just hoping that you indeed did see the problem I was having. As well, for now, I'm just using a 16x16 hotspot and I definitely don't have the problem when doing so.

Huzzah.

Posted on 2004-08-25 20:21:32


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.