Hey guys.
Curious - I'd like to get my actor sprite, and all NPC sprites to move up 4 pixels. Similar to how they would move down 4 pixels if you put a '!' at the beginning of title for that character graphic. - Can you do the opposite thing (so they move up by 4) with, some other prefix perhaps?
I've thought about changing my entire tile set to make the fix... But that would take up an unnecessary amount of time, not to mention a doubling of size in all my tilesets.
Hmmm, interesting!! Still teaching myself Ruby atm, but thanks heaps!!!. This helps me in both scripting and in my problem. Haha, up until now I'd decided that the 'positioning' would come to be "the charm of the game". lol
Few questions though... - I guess I'd be adding/editing the definition of 'up_character?' to the Game_CharacterBase script. Does it matter where it goes?
- What's an object_character?, is that your actor and all graphics you'd use for events?
- Lastly are you paraphrasing 'object_character? ? 0 : 4' when you say "bob = 4" etc
Cheers! 😎
Thanks Shaz. I guess ALL sprites was the intention. So I will mess around with that. But it's great to know I can customise whichever ones I want using Harosatas method. Thanks!! Thanks!!
As to where to put these little scripts, you place them where you put any new big scripts. That should be under Materials, near the bottom of the script database. If you have multiple methods of the same name like the default shift_y and either mine or Shaz's version of shift_y, the later ones (closer to the bottom of the database) would be executed.
Generally, we want to avoid changing the default scripts directly, instead overwriting/aliasing them with a new method, since you might not write a reminder if you decide to edit.
---
Also, object_character? ? 0 : 4 is shorthand for:
if object_character?
0
else
4
end
I can't really use the shorthand with three conditions.