Problem with displaying Diagonal Sprites

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
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
 

Gothic Lolita

YouTube Starlet
Veteran
Joined
Oct 21, 2014
Messages
1,132
Reaction score
197
First Language
German
Primarily Uses
RMMV
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/)
 

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
maybe it needs to be $james[diag] as summer wrote it
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Ooh, I see. Because your upload was just $Jamediag.png so I thought. :)
 

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
Haha, yes, I saw that. I'm not sure why it came up like that.
 

Gothic Lolita

YouTube Starlet
Veteran
Joined
Oct 21, 2014
Messages
1,132
Reaction score
197
First Language
German
Primarily Uses
RMMV
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. :D
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
 
Last edited by a moderator:

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
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. :D

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
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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...
 

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Gothic Lolita

YouTube Starlet
Veteran
Joined
Oct 21, 2014
Messages
1,132
Reaction score
197
First Language
German
Primarily Uses
RMMV
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. :) /)
 
Last edited by a moderator:

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Gothic Lolita

YouTube Starlet
Veteran
Joined
Oct 21, 2014
Messages
1,132
Reaction score
197
First Language
German
Primarily Uses
RMMV
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/)
 

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
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.  :|
 

Gothic Lolita

YouTube Starlet
Veteran
Joined
Oct 21, 2014
Messages
1,132
Reaction score
197
First Language
German
Primarily Uses
RMMV
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/)
 

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
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
 

Donutdude

Veteran
Veteran
Joined
Jun 29, 2013
Messages
47
Reaction score
3
First Language
English
Primarily Uses
Never mind all! I figured it out.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top