- 6
- Posts
- 14
- Years
- Seen Dec 4, 2010
Script "RPG__SPRITE" line 112 : NoMethodError occurred
undefined method > for nil : NilClass
HELP!
undefined method > for nil : NilClass
HELP!
I like your starter kit. I've got one question, though.
A friend of mine told me you can only add 64x64 sprites and there is a hard way to make more room. Is it true? If so, could you please show me a way to insert 80x80 sprites? (all my fakemon are 80x80)
Just replace your 64x64 with 80x80. Most likely you won't have to do anything. If you do, all you'd have to do was reposition your sprites.
Here's an example that I just tested, which worked:thank you very much i really appreciate it! :) so to be sure, i right click to setup an event and i go to script?
Soz for the edit but i put in what you told me to put and it didnt accept it when i run it is there an alternative perhaps?
For my game, I want to implement a whole entirely new type, but I have looked through some things and I can't find where to do that. Can someone point me in the right direction?
It's calculated the same as the proper games, in which the rate is 1/8192. It just seems to be a remarkable fluke.I'm curious about the rate that Pokerus is encountered in the wild. I swear I get one every 10 wild battles in my tests. Is it just good RNG, or what? I thought that the rate was 1/65535?
Wait more than an hour and a half before reposting your question. It's not lost to the ages just because it's not on the last page - people still have to read the new posts, and will still reply (if they can) even if it's a page over.Could anybody tell me whereabouts I would place (and what name I would give to) a surfing sprite? As in when the player surfs on water.
Is it possible to make a folder inside the BGM folder filled with music and RPG maker will read it? I don't want to make everything be unorganized.
Having a bit of trouble here... I'm using a blank base of the starter kit for this because I don't want to mess anything up in my game... but here's the problem.
I resized my screen to a desired size, and things like the bag, battle screen, etc etc are all in weird positions. Now, I can do CSS positioning with numbers, but I can't find where to position anything with these.
![]()
Can anyone lead me to the script where I can reposition things?
It's possible, but you'd have to redefine the BGM folder path. I don't think that i'd be worth it. What are you doing it for?
The battle screen is horrible to fiddle with. It's all in PokeBattle_ActualScene.Having a bit of trouble here... I'm using a blank base of the starter kit for this because I don't want to mess anything up in my game... but here's the problem.
I resized my screen to a desired size, and things like the bag, battle screen, etc etc are all in weird positions. Now, I can do CSS positioning with numbers, but I can't find where to position anything with these.
![]()
Can anyone lead me to the script where I can reposition things?
PokeBattle_Pokemon, def isShiny?. Replace the 5 lines in there with "return false".Does anyone know how to remove shiny pokemon permanently? I tried following the provided guide, but I couldn't find out how to edit it in the script editor. Thanks!
The battle screen is horrible to fiddle with. It's all in PokeBattle_ActualScene.
One thing you can do is look for terms like "yoffset" and things that refer to "Graphics.height"/"Graphics.width". yoffset is zero with the default screen size, and it's positive (i.e. pushes things down the screen) for larger screen sizes.
The data box coordinates are handled near the top of class PokemonDataBox. That's simple enough.
pbBackdrop has the coordinates for the bases (the grey circles below the Pokémon in your picture).
pbStartBattle contains lots of other positionings. Note that they're positioned before everything starts sliding across the screen at the start of the battle, which is why the sprites are off the edges of the screen.
Also have a tentative look at adjustBattleSpriteYEx in PokemonSprite. This repositions the Pokémon sprites in battle depending on some values in pokemon.txt which are typically used to make some Pokémon look airborne. There's a "Graphics.height" bit in here, so change that.
I'm sure there are other things elsewhere that I've missed, and complex relations between numbers that I haven't mentioned (such as exactly where off-screen the sprites should be placed such that they'll end up in the right place).
As I said, it's horrible to do. You're much better off finding someone who knows what they're doing and persuade them to do it for you.