Problem with displaying Diagonal Sprites

Hi again everyone,

On my game, I'm using the XAS ABS battle system. It's working fine for the most part, but for whatever reason, the diagonal sprites are not showing up. I have the PLAYER_DIAGONAL_MOVEMENT  set to 'true'. My sprite has the suffix '_Diagonal'. And I have copied all of the scripts from the demo over. The character is able to move diagonally, however, the sprite that I have edited does not appear. With Victor's Diagonal Movement script, it works fine. But the two are not compatible. Does anyone have any suggestions?

Thank you in advance!

XAS ABS

Victor's Diagonal Movement
You need to add [diag] to the spritenames, else it don't work. 😉
Should look like:

yourname[diag].png

I use it myself and it works fine. 🙂 (\s/)
You need to add [diag] to the spritenames, else it don't work. 😉

Should look like:

yourname[diag].png

I use it myself and it works fine. 🙂 (\s/)
Thank you for your response. I tried this and it still won't show up. I'm not sure what I'm doing wrong. I've attached the culprit in question.

$Jamesdiag.png
maybe it needs to be $james[diag] as summer wrote it
maybe it needs to be $james[diag] as summer wrote it
That's how it appears in my resources: $James[diag]
Ooh, I see. Because your upload was just $Jamediag.png so I thought. 🙂
Haha, yes, I saw that. I'm not sure why it came up like that.
You only need to chose the
$james.png
for your character portrait, then it should load automatically
$james[diag].png

If you use any other movement scripts of victor you need to put [diag]-suffix on the last. 😉


I put two examples in the attachment file. 🙂 (\s/)

*edit*

As I can see, you can't put it with original name here. 😀
But it's:
Mane 6[f6]
and:
Mane 6[f6][diag]

Same goes if you have different animations script of victor would be:
Mane 6[wlk]

and:

Mane 6[diag][wlk]

Hope that helped more. 🙂 /)

Mane 6f6.png

Mane 6f6diag.png
You only need to chose the

$james.png

for your character portrait, then it should load automatically

$james[diag].png

If you use any other movement scripts of victor you need to put [diag]-suffix on the last. 😉

I put two examples in the attachment file. 🙂 (\s/)

*edit*

As I can see, you can't put it with original name here. 😀

But it's:

Mane 6[f6]

and:

Mane 6[f6][diag]

Same goes if you have different animations script of victor would be:

Mane 6[wlk]

and:

Mane 6[diag][wlk]

Hope that helped more. 🙂 /)
Thank you for all the help Sunset. But for whatever reason it still doesn't work. I've attached my character screen with the $James.png selected as the character sprite. I've also attached the resources page which show $James[diag].png. I've downloaded both of your sprites, named them accordingly and imported them into my project, still nothing. The diagonal sprites don't appear. I think there must be something wrong with the script, although I dragged and dropped it directly from the demo without changing a thing. If you don't mind me asking, which version of the XAS ABS are you using?

*Edit* Forgot to attach the images

Character Graphic.png

Resources.png
why is there such a large transparent area around your sprites?


Usually the sprite area contains only the sprite, not three times as much side area, because that often displaces the sprite.


And if one of your scripts limits the sprite to the original size of 32x32, the sprite itself would be outside the event area...
why is there such a large transparent area around your sprites?

Usually the sprite area contains only the sprite, not three times as much side area, because that often displaces the sprite.

And if one of your scripts limits the sprite to the original size of 32x32, the sprite itself would be outside the event area...
The space around the sprites is there to accommodate for the other sprites. For example, if I want the character to swing a sword, that additional space is necessary to edit in the sword sprite. Additionally, this is how the sprites are set up in the demo for XAS ABS. As far as I can see, no script limits the sprites size.

*Edit*

Interestingly, I tried using the demo. And the sprites there are labeled with a suffix such as "_diagonal". These sprites fail to appear as well. Even when I change it to [diag] as Sunset suggested. Perhaps the demo itself is erroneous? I will try downloading a new copy of it and see if there are any changes.

*Edit 2*

I tried downloading a new demo from this site. (XAS Hero Edition Ace (ver 0.6) Without editing a thing, the diagonal sprites do not appear. The player is capable of moving diagonally, however the sprites themselves do not appear. It appears that this is a problem with scripts themselves.
Sorry for the mistake, I didn't use XAS Hero Edition, only using victor script. 🙂

But you can try to disable in ● XAS
line 86 to false and

line 88 to false.

Probably then the diagonal movement of victor works. 😉
Second option is to place victor script above the XAS ones and below. 
Sometimes that can make the differenc. 😉 (\s/)

*EDIT*
I tried it for myself and works if you disable these two lines. 🙂 /)
Sorry for the mistake, I didn't use XAS Hero Edition, only using victor script. 🙂

But you can try to disable in ● XAS

line 86 to false and

line 88 to false.

Probably then the diagonal movement of victor works. 😉

Second option is to place victor script above the XAS ones and below. 

Sometimes that can make the differenc. 😉 (\s/)

*EDIT*

I tried it for myself and works if you disable these two lines. 🙂 /)
Hi Sunset, I tried as you recommended: Disabling DASH_SYSTEM and PLAYER_DIAGONAL_MOVEMENT; and also placed Victor's Base Module and the Diagonal Movement script above the XAS ABS scripts, but I can't start the game without an error which says:

Script 'Victor's Diagonal Movement' line 642: TypeError occurred

 

nil can't be coerced into Fixnum
I meant:
 PLAYER_DIAGONAL_MOVEMENT  = false

and that:
EVENT_DIAGONAL_MOVEMENT  = false

The dash system you can enable/ = true. 🙂
I putted the module base and diagonal movement of Victor above XAS. 😉 (\s/)
I meant:

 PLAYER_DIAGONAL_MOVEMENT  = false

and that:

EVENT_DIAGONAL_MOVEMENT  = false

The dash system you can enable/ = true. 🙂

I putted the module base and diagonal movement of Victor above XAS. 😉 (\s/)
Thanks Sunset! I'm able to start the game now, however when I try to swing the weapon, it gives me the same error as above.  :|
I've seen that, didn't tried to attack. :|
I wish I knew, how to fix that issue...
The only thing that would come in my mind is put out victors script, because you can still move diagonal. 🙂

You can try this one, if it works:
http://himeworks.com/2014/11/eight-directional-movement/

The two diagonal movement parts I would leave as false. (\s/)
I've seen that, didn't tried to attack. :|

I wish I knew, how to fix that issue...

The only thing that would come in my mind is put out victors script, because you can still move diagonal. 🙂

You can try this one, if it works:

http://himeworks.com/2014/11/eight-directional-movement/

The two diagonal movement parts I would leave as false. (\s/)
Unfortunately the XAS ABS diagonal movement does not seem to work correctly. For example, it doesn't always show the correct directional sprite for the direction I'm moving. Thank you so very much for the help though Sunset.

Does anyone else know a way to fix this error?:

Script 'Victor's Diagonal Movement' line 642: TypeError occurred

 

nil can't be coerced into Fixnum
Never mind all! I figured it out.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-displaying-diagonal-sprites.41465/