TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Hello, I'm currently making a game called Mother 20XX, I'm Currently Trying To find a way to make moving battle backgrounds in VX ACE Every forum, Every video, Nothing. Can someone give me a script for VX Ace Pls? It will be helpful.

Thanks!
-TopHatGuy.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,253
Reaction score
1,157
First Language
English
Primarily Uses
RMVXA
Theoallen has a animated battleback script and GGZiron has a scrolling battleback script.
And there is this from someone (I don't know who) for scrolling battleback
Ruby:
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Create Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def create_battleback1
@back1_sprite = Plane.new(@viewport1)
@back1_sprite.bitmap = battleback1_bitmap
@back1_sprite.z = 0
center_sprite(@back1_sprite)
end
#--------------------------------------------------------------------------
# * Create Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def create_battleback2
@back2_sprite = Plane.new(@viewport1)
@back2_sprite.bitmap = battleback2_bitmap
@back2_sprite.z = 1
center_sprite(@back2_sprite)
end
#--------------------------------------------------------------------------
# * Update Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def update_battleback1
@back1_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Update Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def update_battleback2
@back2_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Move Sprite to Screen Center
#--------------------------------------------------------------------------
def center_sprite(sprite)
end
end
 

GGZiron

Veteran
Veteran
Joined
Nov 6, 2016
Messages
104
Reaction score
53
First Language
Bulgarian
Primarily Uses
RMMZ
Hello!

Since I got mentioned, wish to tell when I wrote my scrolling battle back in help request, I was much less experienced. Was just excited to post my own solutions. I didn't use Plane object(I didn't know about them yet), so definitely don't go with mine! The one @Roninator2 shows here seems better, thought not having the time to try it.
 
Last edited:

TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Theoallen has a animated battleback script and GGZiron has a scrolling battleback script.
And there is this from someone (I don't know who) for scrolling battleback
Ruby:
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Create Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def create_battleback1
@back1_sprite = Plane.new(@viewport1)
@back1_sprite.bitmap = battleback1_bitmap
@back1_sprite.z = 0
center_sprite(@back1_sprite)
end
#--------------------------------------------------------------------------
# * Create Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def create_battleback2
@back2_sprite = Plane.new(@viewport1)
@back2_sprite.bitmap = battleback2_bitmap
@back2_sprite.z = 1
center_sprite(@back2_sprite)
end
#--------------------------------------------------------------------------
# * Update Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def update_battleback1
@back1_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Update Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def update_battleback2
@back2_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Move Sprite to Screen Center
#--------------------------------------------------------------------------
[/QUOTE]
Theoallen has a animated battleback script and GGZiron has a scrolling battleback script.
And there is this from someone (I don't know who) for scrolling battleback
Ruby:
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Create Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def create_battleback1
@back1_sprite = Plane.new(@viewport1)
@back1_sprite.bitmap = battleback1_bitmap
@back1_sprite.z = 0
center_sprite(@back1_sprite)
end
#--------------------------------------------------------------------------
# * Create Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def create_battleback2
@back2_sprite = Plane.new(@viewport1)
@back2_sprite.bitmap = battleback2_bitmap
@back2_sprite.z = 1
center_sprite(@back2_sprite)
end
#--------------------------------------------------------------------------
# * Update Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def update_battleback1
@back1_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Update Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def update_battleback2
@back2_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Move Sprite to Screen Center
#--------------------------------------------------------------------------
def center_sprite(sprite)
end
end
Thanks! But where do I put the script *sorry I'm a bit new on RPG MAKER VX ACE
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,253
Reaction score
1,157
First Language
English
Primarily Uses
RMVXA
Read the tutorials in my signature block.
here
 

TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Theoallen has a animated battleback script and GGZiron has a scrolling battleback script.
And there is this from someone (I don't know who) for scrolling battleback
Ruby:
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Create Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def create_battleback1
@back1_sprite = Plane.new(@viewport1)
@back1_sprite.bitmap = battleback1_bitmap
@back1_sprite.z = 0
center_sprite(@back1_sprite)
end
#--------------------------------------------------------------------------
# * Create Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def create_battleback2
@back2_sprite = Plane.new(@viewport1)
@back2_sprite.bitmap = battleback2_bitmap
@back2_sprite.z = 1
center_sprite(@back2_sprite)
end
#--------------------------------------------------------------------------
# * Update Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def update_battleback1
@back1_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Update Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def update_battleback2
@back2_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Move Sprite to Screen Center
#--------------------------------------------------------------------------
def center_sprite(sprite)
end
end
It wasn't really what I was thinking about. I was gonna use earthbound gifs. But it's ok! It's still very useful!
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,253
Reaction score
1,157
First Language
English
Primarily Uses
RMVXA
Then another option is MOG Battleback EX.
You set up the event with the data for the graphic files and it can look like this
background.gif
 

TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Theoallen has a animated battleback script and GGZiron has a scrolling battleback script.
And there is this from someone (I don't know who) for scrolling battleback
Ruby:
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Create Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def create_battleback1
@back1_sprite = Plane.new(@viewport1)
@back1_sprite.bitmap = battleback1_bitmap
@back1_sprite.z = 0
center_sprite(@back1_sprite)
end
#--------------------------------------------------------------------------
# * Create Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def create_battleback2
@back2_sprite = Plane.new(@viewport1)
@back2_sprite.bitmap = battleback2_bitmap
@back2_sprite.z = 1
center_sprite(@back2_sprite)
end
#--------------------------------------------------------------------------
# * Update Battle Background (Floor) Sprite
#--------------------------------------------------------------------------
def update_battleback1
@back1_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Update Battle Background (Wall) Sprite
#--------------------------------------------------------------------------
def update_battleback2
@back2_sprite.ox += 2
end
#--------------------------------------------------------------------------
# * Move Sprite to Screen Center
#--------------------------------------------------------------------------
def center_sprite(sprite)
end
end
Hey, Are you able to edit the script to go in any direction?
Example: One is going to the left while the other is going to the right?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,253
Reaction score
1,157
First Language
English
Primarily Uses
RMVXA
Hey, Are you able to edit the script to go in any direction?
Example: One is going to the left while the other is going to the right?
I understand that the code is confusing to you, but this is extremely easy.
right where it says updatebattleback1, there is a number.
the operation is add (+). just change that to a minus (-)
 

TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
I understand that the code is confusing to you, but this is extremely easy.
right where it says updatebattleback1, there is a number.
the operation is add (+). just change that to a minus (-)
That makes sense!
 

TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
I understand that the code is confusing to you, but this is extremely easy.
right where it says updatebattleback1, there is a number.
the operation is add (+). just change that to a minus (-)
Omg I got a good result
 

Latest Threads

Latest Posts

Forum statistics

Threads
124,346
Messages
1,162,923
Members
163,142
Latest member
PumpkinLord
Top