Author Topic: Re doing the battle system questions  (Read 3244 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Re doing the battle system questions
« Reply #20 on: June 01, 2009, 09:19:14 AM »
You can change the zoom_x and zoom_y attributes of a sprite rather that using stretch_blt.

If you want to change bitmaps on actions, you should implement it in Scene#update_phase4_step3 (animation for action performer) and Scene_Battle#phase4_step4 (animation for action targer) as those are the moment where the database animations are being played. @active_battler is the current battler instance.
« Last Edit: June 01, 2009, 09:20:33 AM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: Re doing the battle system questions
« Reply #21 on: June 01, 2009, 08:05:46 PM »
zoom_x and zoom_y... *slaps head*

If you want to change bitmaps on actions, you should implement it in Scene#update_phase4_step3 (animation for action performer) and Scene_Battle#phase4_step4 (animation for action targer) as those are the moment where the database animations are being played. @active_battler is the current battler instance.

but those methods only pass information to a Game_Actor/Game_Enemy class instance, when Spriteset_Battle is updated it updates Sprite_Battler instances which handle the animation based on information it pulls from the Game_Actor/Game_Enemy class instance stored in @battler. so yes I would need to use those methods but the methods for the animation would have to go in Sprite_Battler, right?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Re doing the battle system questions
« Reply #22 on: June 01, 2009, 08:27:30 PM »
You need two parts of code. One for setting it up in the scene (i.e. @active_battler.run_animation = true) and another part in Sprite_Battler#update where you check if there is a request for an animation (by checking @active_battler.run_animation or something like that) and execute it.

Sprite_Battler and Sprite_Character classes use a concept of observation. They observe the data classes and display information in form of sprites.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: Re doing the battle system questions
« Reply #23 on: June 01, 2009, 08:31:33 PM »
ok makes since now ty blizz.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: Re doing the battle system questions
« Reply #24 on: June 06, 2009, 04:02:20 AM »
New question.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline fugibo

  • World Conqueror
  • Chaos User
  • ******
  • Posts: 1966
  • LV: 44
    • View Profile
Re: Re doing the battle system questions
« Reply #25 on: June 06, 2009, 04:51:30 AM »
I'm not sure what you mean, but I think you're trying to ask "How do I get the battleback to scroll," like the way you scroll a webpage. You just change the x and y of the sprite (assuming you loaded the full bitmap or whatever you needed to do) by whatever increment you need. Some of the classes (can't remember which, I think it's just Bitmap) also have @ox and @oy, but I haven't really used those so I don't know if they'd help.

Alternatively, just look at how Fogs are implemented in the RTP.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: Re doing the battle system questions
« Reply #26 on: June 06, 2009, 04:56:34 AM »
or panorama's

Offline fugibo

  • World Conqueror
  • Chaos User
  • ******
  • Posts: 1966
  • LV: 44
    • View Profile
Re: Re doing the battle system questions
« Reply #27 on: June 06, 2009, 05:06:27 AM »
Yeah, but those aren't interesting. Fogs = Fancy Graphics.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Female
  • Wants to write a compiler for fun
    • View Profile
Re: Re doing the battle system questions
« Reply #28 on: June 06, 2009, 05:11:45 AM »
aw found what I needed, the Plane class, changing the ox and oy of a plane class will scroll it.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)