- 17
- Posts
- 4
- Years
- Seen Feb 6, 2023
Trying to add the star animation to successful capture
in: PokeBattle_Animations
def ballCaptureSuccess(ball,delay,ballX,ballY)
ball.setSE(delay,"Battle catch click")
pbStarAniCaptureSuccess(ballX,ballY)
ball.moveTone(delay,4,Tone.new(-64,-64,-64,128))
end
in: PField_Field
def pbStarAniCaptureSuccess(ball_x,ball_y)
$scene.spriteset.addUserAnimation(BALL_CAPTURE_ID,ball_x,ball_y,true,1)
end
alternativly I'v tried this:
in: PokeBattle_Animations
def ballCaptureSuccess(ball,delay,ballX,ballY)
ball.setSE(delay,"Battle catch click")
$scene.spriteset.addUserAnimation(BALL_CAPTURE_ID,ball_x,ball_y,true,1)
ball.moveTone(delay,4,Tone.new(-64,-64,-64,128))
end
Im getting the same error for both.
undifined method addUserAnimation
not sure how to fix or where or why its wrong any help would be welcome.
in: PokeBattle_Animations
def ballCaptureSuccess(ball,delay,ballX,ballY)
ball.setSE(delay,"Battle catch click")
pbStarAniCaptureSuccess(ballX,ballY)
ball.moveTone(delay,4,Tone.new(-64,-64,-64,128))
end
in: PField_Field
def pbStarAniCaptureSuccess(ball_x,ball_y)
$scene.spriteset.addUserAnimation(BALL_CAPTURE_ID,ball_x,ball_y,true,1)
end
alternativly I'v tried this:
in: PokeBattle_Animations
def ballCaptureSuccess(ball,delay,ballX,ballY)
ball.setSE(delay,"Battle catch click")
$scene.spriteset.addUserAnimation(BALL_CAPTURE_ID,ball_x,ball_y,true,1)
ball.moveTone(delay,4,Tone.new(-64,-64,-64,128))
end
Im getting the same error for both.
undifined method addUserAnimation
not sure how to fix or where or why its wrong any help would be welcome.