Sprite Weapon Positions

limonada

Villager
Member
Joined
Dec 6, 2015
Messages
17
Reaction score
8
First Language
Portuguese
Hey guys, it`s my first attempt to javascript to MV so it`s probably too basic and maybe someone has done it before but...

I created some custom SV battle sprites for my actoers and had some issues with the weapons shwoing up on weird places.

Shaz suggested looking for a plugin, so I went and did one myself.

Since it`s more like a snippet than a plugin, i decided that if someone ever had the same issue, you could use it for something.

This is what happened to me : 



And by setting X and Y position value with the plugin, this is what I achieved:



You can set the X and Y at the plugin params and that`s all, a very very very stupid and basic plugin, BUT, if you ever need it, here is it.

the code is on pastebin:

http://pastebin.com/ZAZNKe81

Since it`s a very simple dumb kind of plugin, no credits EVER needed.
 
Joined
Apr 30, 2012
Messages
216
Reaction score
35
First Language
Spanish
Primarily Uses
Stupid plugin? This is awesome lady,thanks you very much! :D

Excuse me for my bad english and greetings from Argentina.

NO MORE PROBLEM WITH MY CUSTOM WEAPONS.
 

Ashouse

Resident Zombie
Veteran
Joined
Oct 25, 2015
Messages
245
Reaction score
93
First Language
English
Primarily Uses
N/A
Simple =/= stupid. Keep on learning and doing. Good job. ;)
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
396
Reaction score
263
First Language
English
Primarily Uses
N/A
Sweet. Thanks!
 

hikkistyrja

Plasma Kid
Member
Joined
May 18, 2020
Messages
8
Reaction score
2
First Language
Filipino
Primarily Uses
RMMV
I'm sorry, I am new to this. How can I use this? Do I just put it on my js folder as weaponspriteposition or wutever name it can be? Edit coordinates and all that? I have the same issue now.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,566
Reaction score
914
First Language
Portuguese - Br
Primarily Uses
RMMV
I'm sorry, I am new to this. How can I use this? Do I just put it on my js folder as weaponspriteposition or wutever name it can be? Edit coordinates and all that? I have the same issue now.
Yes! You download the plugin and put the name you want in the file.
After that put it into the plugin manager and you will see the parameters to adjust x and y position(according to what the author says, I never tested it).
 

hikkistyrja

Plasma Kid
Member
Joined
May 18, 2020
Messages
8
Reaction score
2
First Language
Filipino
Primarily Uses
RMMV
Yes! You download the plugin and put the name you want in the file.
After that put it into the plugin manager and you will see the parameters to adjust x and y position(according to what the author says, I never tested it).
I did that, and while I'm trying out coordinates, i get a bunch of errors with this and the game needs to restart. It will go away if i turn this off.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,566
Reaction score
914
First Language
Portuguese - Br
Primarily Uses
RMMV
I did that, and while I'm trying out coordinates, i get a bunch of errors with this and the game needs to restart. It will go away if i turn this off.
Hmm... When the error happens, can you press the F8 or F12 button and send a screenshot of the tab "console"?
This plugin is very old, maybe it did not work with the most recent Rm Mv code. If it is an easy thing to do, maybe I can provide a fix.
 

hikkistyrja

Plasma Kid
Member
Joined
May 18, 2020
Messages
8
Reaction score
2
First Language
Filipino
Primarily Uses
RMMV
Will do. Please wait. :)
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,566
Reaction score
914
First Language
Portuguese - Br
Primarily Uses
RMMV
@hikkistyrja try it now. I think the plugin name that we download is not equal to the one that is in the code.
 

Attachments

hikkistyrja

Plasma Kid
Member
Joined
May 18, 2020
Messages
8
Reaction score
2
First Language
Filipino
Primarily Uses
RMMV
err.png
I just show this image and not the other when I change the coordinates on the plugin. I'm sorry.
 

hikkistyrja

Plasma Kid
Member
Joined
May 18, 2020
Messages
8
Reaction score
2
First Language
Filipino
Primarily Uses
RMMV
It's okay. But I don't understand your post, what do you mean? The problem is solved?
Nope. Sadly. It doesnt animate. It only show the first sprite of the weapons. It doesnt move or anything while the attack or skill is being executed.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,566
Reaction score
914
First Language
Portuguese - Br
Primarily Uses
RMMV
I think this plugin doesn't animate the weapons, it just changes the position on the screen.
Perhaps are you using other plugins that can cause incompatibility?
Because here everything worked fine.
 

hikkistyrja

Plasma Kid
Member
Joined
May 18, 2020
Messages
8
Reaction score
2
First Language
Filipino
Primarily Uses
RMMV
I think so. I am using YanFly's plugins and I don't really know wut is interfering with the animation. I tried using the Tutorial game and the JS sprites worked and this. I'd have to turn off every single one of those plugins I am using to know wut is incompatible. :) Thank you.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
953
Reaction score
514
First Language
Javascript
Primarily Uses
RMMZ
I created some custom SV battle sprites for my actors and had some issues with the weapons showing up on weird places.

Shaz suggested looking for a plugin, so I went and did one myself.

You can set the X and Y at the plugin params
Hey good work on figuring out how to do that on your own :)

I've went ahead and taken it a step further.

1590142203486.png
1590143407106.png
1590143485334.png

Also I should point out that aliased "Sprite_Weapon.prototype.setup" instead of "Sprite_Weapon.prototype.initMembers" I found that to be the better route to go with this for best compatibility ;)

...
That said I do not mean in anyway to "hijack" this thread.
So please if one wishes to post about my plugin, that is what the itch.io page it there for.
 
Last edited:

hikkistyrja

Plasma Kid
Member
Joined
May 18, 2020
Messages
8
Reaction score
2
First Language
Filipino
Primarily Uses
RMMV
I'm afraid none of these works for me and my taller sprites. I am getting kinda frustrated about it. :aswt:
I will just incorporate default weapons into the battlers so I will not have this issue again.
Thank you for all the help :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Demo for Maze of the Lost MZ released. I would appreciate any and all feedback and constructive criticism. If you like Dungeon Crawlers and JRPG's with a hint of Metroidvania and Shadowgate/Uninvited you might like it. https://forums.rpgmakerweb.com/index.php?threads/maze-of-the-lost-mz-demo-port-from-mv.127971/
Well, here it is, colored. :kaoslp:

Forum statistics

Threads
103,388
Messages
998,955
Members
134,907
Latest member
zelda3469
Top