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 some Help with RGSS2(1/3 SOlved)

Hello ppl!

i making a game in VX and need some help:
In the Sideview Battle System is possible to change the places where the characters ingame?
if u didn't understood:
Code:
ACTOR_POSITION = [[415,120],[435,150],[455,180],[475,210]]
Is possible change these numbers during the game?

Second:

Is possible to center the texts in menus?


And Last but not Least:

How do i make these skill that use 2/4 actors?
I use Sozai Sideview BS
like some videos i saw on youtube.



Thank you ppl!
 
nope unless that variable is a global variable like $myvariable = 2 then you'll able change this variable in event script, in your case you'll need to little modyfy the script like adding this "$" without the quotes on first word like $actor_position = (blah blah blah just example doods)

How to change text in center

since i dont have vx lets think rgss same as rgss2

yeah its easy you need to modyfy this
self.contents.draw_text(100, 20, 310, 28, text_message, 0) #(x, y, width, height, align)
0 = left
1 = center
2 = right align

example
self.contents.draw_text(100, 20, 310, 28, text_message, 1)
looks the different

3. what sideview battle you used?
 
i hope this is solved your problem's
 
Thxs  for the try but didn't work very well...

1 -
I  put the $ in "ACTOR_POSITION"
idk if placed in the wrong place, but it didn't work.
( Is right here, no?>>> $ACTOR_POSITION = [[415,120],[435,150],[455,180],[475,210]] )

Shows an error msg at the line 1914 of Sideview 2 script (base = N01::ACTOR_POSITION[self.index])
The error msg ONLY appers when i enter the battle.
Here's the error msg:
http://i30.tinypic.com/e8pawp.jpg[/img]

i tried to place a $ in line 1914 too, but i got an syntax error


2-
RGSS2 is different from RGSS, here how a text is show in RGSS2: self.contents.draw_text(rect, @commands[index])

3-
I'm using Sideview 2.4

if u can't understand i'll try to make more clean ^^
thxs for the help  :smile:
 
ok all i can see is that script using a module
they call the module no1::actor_position

1st see that module no1. contents make sure you change actor_position to $actor_position

2nd show me all sideview battler script using spoiler

3rd if you used battle system by claimh go to yazus page for english refference maybe he can help you out
 

khmp

Sponsor

1. Question:
Alright open up the script editor, and jump to SBS 2.4 Part 2's section. In this section go to line 1914 and just replace it with this:
Code:
    base = $actor_position[self.index]

Because you made the actor position a global it no longer needs class specific scope defined. Just the global prefix "$".

To change it at a later point:
Code:
$actor_position[party_position][0(x)/1(y)]

Where party_position array index representation of a party member. The party leader would be 0 and so on. The 0(x)/1(y) is whether or not you want to manipulate the x and y independently. For example, if I want to change the y position of the second party member. This would be the code for it:
Code:
$actor_position[1][1] = 150
You can also change both the x and y in one line if you want as well:
Code:
$actor_position[0] = [400, 150]

[edit]
2. Question
iqbal_0k":3vwxr9cd said:
yeah its easy you need to modify this
self.contents.draw_text(100, 20, 310, 28, text_message, 0) #(x, y, width, height, align)
0 = left
1 = center
2 = right align

example
self.contents.draw_text(100, 20, 310, 28, text_message, 1)
He was right on the money the method is overloaded to either take 3 parameters or 6.

3 parameter draw_text method:
Code:
Bitmap.draw_text(rect, text[, align]) # If align is left out it default to zero.
6 parameter draw_text method:
Code:
Bitmap.draw_text(x, y, width, height, text[, align]) # If align is left out it default to zero.

So your solution would be the inclusion of a 1 in the first one.
Code:
self.contents.draw_text(rect, @commands[index], 1)

3. Question:
I have no idea how thats done. You might want to make a script request on it. I think I saw something like this before but I don't know if it was answered or not.

Good luck with it Can be a chair! :thumb:
 

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