Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BltPlayer()
#1
[Client Side Only]

In a blank MS, BltPlayer has a Y coordinate that gets set as "GetPlayerX(Index) * PIC_X + Player(index) - 4"
Code:
y = GetPlayerY(index) * PIC_Y + Player(index).YOffset - 4
It shouldn't be - 4 because if it is, the character gets blitting 4 pixels above where it should be, therefore making the character's head touch the next tile up. If the tile is fringed, then it looks very bad, in my opinion.

Change it to:
Code:
y = GetPlayerY(index) * PIC_Y + Player(index).YOffset

(I don't know if this has been fixed in the new MS (MSE), because I use 3.0.3.)

:: Erik
Reply
#2
its a feature xD

gives your player perspective.. i dont see how it looks bad with fringe though o.0
Reply
#3
Well, if you're using 32 x 32 tiles, then a character can be as tall as 32 x 32. If the player is moved up 4 pixels, it effectively makes him or her 32 x 36, reaching up into the next tile a bit. When walking one tile lower than fringe, the head of the character will be cut short a bit, and if you're at the top of a map, it does the same.
Reply
#4
But why would you have a fringe tile one tile above someone unless you want them to walk under it?
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#5
Erik listen to me, its a feature lol. Its a character offset so it looks nicer -rolls eyes-

and no, your character is still 32x32 its just offset.
Reply
#6
I know that the character is 32 x 32.. it's being blitted in a 32 x 32 square, but the character... nevermind. Lol.

Call it what you may, but if someone's wondering why that's happening -- this is the reason.

Also: Some mappers seem to just randomly (and sometimes accidentally) use fringe instead of.. let's say Mask; this makes sure that it won't make it look bad.

I've gone through and asked over 50 people (non-programmers... players) each said that they did not like it, and that they noticed it during gameplay. Therefore, I consider it a bug fix.
Reply
#7
Erik Wrote:I know that the character is 32 x 32.. it's being blitted in a 32 x 32 square, but the character... nevermind. Lol.

Call it what you may, but if someone's wondering why that's happening -- this is the reason.

Also: Some mappers seem to just randomly (and sometimes accidentally) use fringe instead of.. let's say Mask; this makes sure that it won't make it look bad.

I've gone through and asked over 50 people (non-programmers... players) each said that they did not like it, and that they noticed it during gameplay. Therefore, I consider it a bug fix.

Say I don't like spells.

I shall remove spells.

I shall call them a bug!

I will now go post on the forums how to remove spells.

In the bug fix forums.

Your logic is pathetically flawed.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#8
I'm not going to argue with you, I understand your perspective, and I respect it, but I'm just simply stating that it's not neccessary and it can mess people up if they think that they've calculated blitting wrong. Now please, take into consideration my effort and respect me.

This can be taken as a beginner's tutorial to a small little thing that I call an error, or maybe not care at all, but at least please respect me and my thread.
Reply
#9
Dave Wrote:The intent of the offset, I believe, is to make the character appear to be closer to the center of the time.

If you don't want this, remove it. If you do want it, leave it.

The End.

No it isn't.

A - offset with result in the player being higher. This makes him appear 4 pixels over the bottom of the tile below. This was probably to make it look a bit more like the FinalFantasy games, where the top 1/4 of your character appeared over a mask tile, such as a wall, adding realism and perspective.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#10
I know what you're saying, but it makes it look worse in my opinion. 32 x 32 can't get very perspective, I don't believe.

Unless you have many more layers, and a hell of some kind of lighting system, it's not going to look very "real".
Reply
#11
Stop nit picking.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)