Advertiser Content
Seen 5 Days Ago
Posted 5 Days Ago
24 posts
3.4 Years
So, running EBS for the first time I ran into a few problems, but I was able to solve most of them, I think (like the backsprites being SUPER large).

But when the battles start, the trainer throw animation seems like it's reading the square images slightly off from where it's supposed to. I attached an image as an example.
Phantomlimb.png

Every frame of it has the same problem, where I'm getting 90% of one image with a little bit of the previous one on the left. I don't believe I messed with the image file at all yet.

Any ideas?

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 1 Hour Ago
Posted 9 Hours Ago
621 posts
329 Days
Yep. You can try to read the code to edit, you know? I think the code is:
Spoiler:

    if @battle.player.is_a?(Array)
      trainerfile=pbPlayerSpriteBackFile(@battle.player[0].trainertype)
      pbAddSprite("player",0,0,trainerfile,@viewport)
      trainerfile=pbTrainerSpriteBackFile(@battle.player[1].trainertype)
      pbAddSprite("playerB",0,0,trainerfile,@viewport)
    else
      trainerfile=pbPlayerSpriteBackFile(@battle.player.trainertype)
      pbAddSprite("player",0,0,trainerfile,@viewport)
    end
    @sprites["player"].x=40
    @sprites["player"].y=VIEWPORT_HEIGHT-@sprites["player"].bitmap.height
    @sprites["player"].z=30
    @sprites["player"].opacity=0
    @sprites["player"].src_rect.set(0,0,@sprites["player"].bitmap.width/4,@sprites["player"].bitmap.height)
    if @sprites["playerB"]
      @sprites["playerB"].x=140
      @sprites["playerB"].y=VIEWPORT_HEIGHT-@sprites["playerB"].bitmap.height
      @sprites["playerB"].z=30
      @sprites["playerB"].opacity=0
      @sprites["playerB"].src_rect.set(0,0,@sprites["playerB"].bitmap.width/4,@sprites["playerB"].bitmap.height)
    end
Also, 'playerB' is your Partner, i guess.

Eureka.

Luka S.J.

Jealous Croatian

Age 26
Male
Croatia
Seen 2 Weeks Ago
Posted 2 Weeks Ago
1,130 posts
10.6 Years
That's fine, Tsuina. Yes, the system was visually designed from the ground up around the gen 5 style of backsprites (concerning the animation, screen positioning, ball throwing and everything else), but the only differentiating factor is that the backsprite in EBS has a total of 4 frames, while stock Essentials has 5. The hacky solution (though I would not recommend it, as it wouldn't fit visually) is to just trim out one frame from the stock Essentials backsprite. Either that, or dig further through the code as Wolf is suggesting and adjust where the sprites get cut, and how many frames they cycle through during the ball throwing animation.

Seen 1 Week Ago
Posted 1 Week Ago
51 posts
61 Days
Oh ok I'll try that. I don't like "easy ways" as "hard ways" usually have learning as a side effect and learning is all I live for. I still have to dig in other parts of the essential code though because I don't fully undestand where some functions are defined and to what extent they apply. I watched your videos on the ruby language and watched all thundaga videos but I couldn't find a tutorial on the essential script so I still have tons of questions but it's fine, I'm having fun learning little by little.
Advertiser Content