limonada

Villager
Member
Joined
Dec 6, 2015
Messages
17
Reaction score
9
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 : 

1zPPaaU.png


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

BRbr7FI.png


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
246
Reaction score
101
First Language
English
Primarily Uses
N/A
Simple =/= stupid. Keep on learning and doing. Good job. ;)
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
568
Reaction score
524
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
2,223
Reaction score
1,722
First Language
Portuguese - Br
Primarily Uses
RMMZ
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
2,223
Reaction score
1,722
First Language
Portuguese - Br
Primarily Uses
RMMZ
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
2,223
Reaction score
1,722
First Language
Portuguese - Br
Primarily Uses
RMMZ
@hikkistyrja try it now. I think the plugin name that we download is not equal to the one that is in the code.
 

Attachments

  • WeaponSprites.js
    952 bytes · Views: 10

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
2,223
Reaction score
1,722
First Language
Portuguese - Br
Primarily Uses
RMMZ
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
975
Reaction score
567
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 :)
 

moonson

Warper
Member
Joined
Jan 16, 2021
Messages
1
Reaction score
0
First Language
Portuguese - Br
Primarily Uses
RMMV
Thank yoy very much! I was having this problem, trying to change the size of the img and adjusting the weapons sprites, but nothing works. Thank you once again for the awesome work! ^^
 

Latest Threads

Latest Posts

Latest Profile Posts

Finally got my website fixed and the security sorted so it's been a productive day. Can I go to sleep now? I mean... I don't need to work right?
It's always a good idea to refresh yourself on what your plugins do. I'm working on a map with opening walls, and I was about to tear my hair out over how much image editing and hand-constructing of autotiles I'd have to do, when I looked again and saw @Shaz 's Tile Changer could copy areas from another map.
"sorry it took me so long to respond" - can we please agree not to say that anymore unless it actually took a long time?! (Like 36hrs at least) I mean, I'm running out of funny responses here xD
Ugh... 4:53AM over here and I can't sleep so why not just game make.
I just love the MV feature that allows you to create your own animations!

Forum statistics

Threads
115,920
Messages
1,094,020
Members
151,175
Latest member
vyxel96
Top