Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Need Help With Side View Battle System

DrkSht

Member

Yes i understand im new to this and stupid lol , but how do i get the battle system to work right. when i put the script in the game and test it (note: i didnt change the sprites they are normal) it dont work. and also i dont know how to put the animated sprites in there which i think would solve the problem because side view requires animated sprites, right?

If anyone has some helpful tips or anything post em please cause this is my first game im trying to make.

Thanks For Your Help.:)
 
You may want to post what scripts you are using. Different side-view battle scripts may require different things (some do actually require animated battlers, and some do not).

You also may want to explain what "isn't working". Are you getting an error message? If so, what does the message say?
 

DrkSht

Member

This is the Script that im using, its by cybersam. i know there are others but i cant understand them much.

Also the error i get, is Line errors. it always say something is wrong with a certain line.

Code:
#===============================================================================

#
# Full Animated Side View Battle System (CBS) (v2.5) by cybersam
#
#===============================================================================

#
# here we go...
# this makes the script very easy to implement
# just add a new script above the "Main" script
# and insert this whole thing in there
#
# as you can see the sprite changing code is from the japanese script
# so the credits for the sprite changin goes to them....
# i edit it a little so it can show more sprites and sprite animations
# and added some other stuff... the next things are player movement...
#
#
#
# i got the battler changing script in this script...
# the credits for this goes to the guy who made this...
#
# ▼▲▼ XRXS11. 戦éâ€â€Â
 

DrkSht

Member

Gives me multi errors, after i correct one another one pops up.

But when i add the script and try to start the game it gives me a error for line
298(which is for the animated sprites)(i deleted the part for the Animated sprite which allows me to start the game otherwise it wont work)

So if i remove that section is allows the game to load. But then i messes up again once i get into a battle. And it will give me another line error.

Once i get in battle it gives me this line error "Line 1066. undefined method 'moving' for # <Sprite_Battle:0x1804540"

The furthest ive gotten was to where the enemy or person would go to attack and another error pops up as soon as they go to attack.
 
Yes, the script you are using requires you to have animated battlers. After you delete the error at Line 298, you still get the error at Line 1066 because the battle system is looking for a "moving" sprite in the animated character set. Because you don't have an animated character set, it can't find the sprite and returns an error.

You either need to input an animated character set (you can use a a place-holder set that uses the same graphic for all animations and then update as you go), or if you do not want animated battlers, but still want a side-screen, then I suggest ditching this script and inputting this:

This is ripped from Ccoa's Side-View Battle System located here:

http://www.rmxp.org/forums/showthread.php?t=3564&highlight=side+view

#-----------------------------------------------------------------------
# * Get Battle Screen X-Coordinate
#------------------------------------------------------------------------
def screen_x
if self.index != nil
if @back_row
return self.index * 20 + 480
else
return self.index * 20 + 460
end
else
return 0
end
end
#------------------------------------------------------------------------
# * Get Battle Screen Y-Coordinate
#------------------------------------------------------------------------
def screen_y
return self.index * 45 + 175
end

This just moves the battler sprites into a side-view postion on the map.
 

DrkSht

Member

This is ripped from Ccoa's Side-View Battle System located here:

http://www.rmxp.org/forums/showthread.php?t=3564&highlight=side+view

#-----------------------------------------------------------------------
# * Get Battle Screen X-Coordinate
#------------------------------------------------------------------------
def screen_x
if self.index != nil
if @back_row
return self.index * 20 + 480
else
return self.index * 20 + 460
end
else
return 0
end
end
#------------------------------------------------------------------------
# * Get Battle Screen Y-Coordinate
#------------------------------------------------------------------------
def screen_y
return self.index * 45 + 175
end

This just moves the battler sprites into a side-view postion on the map.

Ok but say i dont want to have the normal battlers, i want the side view but i want the battlers to look sorta like the ones in the early Final Fantasy game. where they are sprites but they have no animation, how would i do that?

Also how would i go about to put Animated Sprite sets in? and how would i put this Coordinate thing in that you put up here for me to use?

Sorry for the stupid questions im really new to this.
 
If you don't want the animations, take off the script you put in.

Now for the Screen X and Screen Y coordinates, they should be located under the Game_Actor section.

Sorry, a quick edit:

#-----------------------------------------------------------------------
# * Get Battle Screen X-Coordinate
#------------------------------------------------------------------------
def screen_x
return self.index * 20 + 460
end
#------------------------------------------------------------------------
# * Get Battle Screen Y-Coordinate
#------------------------------------------------------------------------
def screen_y
return self.index * 45 + 175
end


You can play with the +460 and +175 to give you different positions on screen. All these codes do is move the battler graphic to a different location on the screen. So, if you already have the battler animations in FF style, just assign them to your actors in the database (open the database and under Actors, select the Battler graphic).

These will have no animations.
 

DrkSht

Member

So with the coordinates i replace them in the Game_Actor section to put them in the positions i want?

I thank you for taking time outa your day to help me, its greatly appreciated. I will post if i have any more problems with this.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top