mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 15:15:00 +00:00
cut/rock smash animations + sprite resize in summary
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -348,6 +348,9 @@ module Settings
|
|||||||
# is on the map (for new plant growth mechanics only).
|
# is on the map (for new plant growth mechanics only).
|
||||||
PLANT_SPARKLE_ANIMATION_ID = 7
|
PLANT_SPARKLE_ANIMATION_ID = 7
|
||||||
|
|
||||||
|
CUT_TREE_ANIMATION_ID =19
|
||||||
|
ROCK_SMASH_ANIMATION_ID =20
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
|
||||||
# An array of available languages in the game, and their corresponding message
|
# An array of available languages in the game, and their corresponding message
|
||||||
|
|||||||
@@ -294,6 +294,9 @@ class Interpreter
|
|||||||
# it can stay erased when the game is saved then loaded again.
|
# it can stay erased when the game is saved then loaded again.
|
||||||
def pbEraseThisEvent
|
def pbEraseThisEvent
|
||||||
if $game_map.events[@event_id]
|
if $game_map.events[@event_id]
|
||||||
|
if $game_map.events[@event_id].name[/cuttree/i]
|
||||||
|
pbSmashThisEvent()
|
||||||
|
end
|
||||||
$game_map.events[@event_id].erase
|
$game_map.events[@event_id].erase
|
||||||
$PokemonMap.addErasedEvent(@event_id) if $PokemonMap
|
$PokemonMap.addErasedEvent(@event_id) if $PokemonMap
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -122,7 +122,9 @@ class Game_Player < Game_Character
|
|||||||
# Check the tile in front of the player for events
|
# Check the tile in front of the player for events
|
||||||
new_x = @x + (@direction == 6 ? 1 : @direction == 4 ? -1 : 0)
|
new_x = @x + (@direction == 6 ? 1 : @direction == 4 ? -1 : 0)
|
||||||
new_y = @y + (@direction == 2 ? 1 : @direction == 8 ? -1 : 0)
|
new_y = @y + (@direction == 2 ? 1 : @direction == 8 ? -1 : 0)
|
||||||
|
|
||||||
return nil if !$game_map.valid?(new_x, new_y)
|
return nil if !$game_map.valid?(new_x, new_y)
|
||||||
|
|
||||||
for event in $game_map.events.values
|
for event in $game_map.events.values
|
||||||
next if !event.at_coordinate?(new_x, new_y)
|
next if !event.at_coordinate?(new_x, new_y)
|
||||||
next if event.jumping? || event.over_trigger?
|
next if event.jumping? || event.over_trigger?
|
||||||
|
|||||||
@@ -230,8 +230,10 @@ def pbSmashEvent(event)
|
|||||||
return if !event
|
return if !event
|
||||||
if event.name[/cuttree/i]
|
if event.name[/cuttree/i]
|
||||||
pbSEPlay("Cut", 80)
|
pbSEPlay("Cut", 80)
|
||||||
|
$scene.spriteset.addUserAnimation(Settings::CUT_TREE_ANIMATION_ID,event.x,event.y,false,1)
|
||||||
elsif event.name[/smashrock/i]
|
elsif event.name[/smashrock/i]
|
||||||
pbSEPlay("Rock Smash", 80)
|
pbSEPlay("Rock Smash", 80)
|
||||||
|
$scene.spriteset.addUserAnimation(Settings::ROCK_SMASH_ANIMATION_ID,event.x,event.y,false,1)
|
||||||
end
|
end
|
||||||
pbMoveRoute(event, [
|
pbMoveRoute(event, [
|
||||||
PBMoveRoute::Wait, 2,
|
PBMoveRoute::Wait, 2,
|
||||||
@@ -620,6 +622,8 @@ def pbRockSmash
|
|||||||
speciesname = (movefinder) ? movefinder.name : $Trainer.name
|
speciesname = (movefinder) ? movefinder.name : $Trainer.name
|
||||||
pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
|
pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
|
||||||
pbHiddenMoveAnimation(movefinder)
|
pbHiddenMoveAnimation(movefinder)
|
||||||
|
facingEvent = $game_player.pbFacingEvent(true)
|
||||||
|
$scene.spriteset.addUserAnimation(Settings::ROCK_SMASH_ANIMATION_ID,facingEvent.x,facingEvent.y,false)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -122,6 +122,8 @@ class PokemonSummary_Scene
|
|||||||
@sprites["pokemon"].setOffset(PictureOrigin::Center)
|
@sprites["pokemon"].setOffset(PictureOrigin::Center)
|
||||||
@sprites["pokemon"].x = 104
|
@sprites["pokemon"].x = 104
|
||||||
@sprites["pokemon"].y = 206
|
@sprites["pokemon"].y = 206
|
||||||
|
@sprites["pokemon"].zoom_x = Settings::FRONTSPRITE_SCALE
|
||||||
|
@sprites["pokemon"].zoom_y = Settings::FRONTSPRITE_SCALE
|
||||||
@sprites["pokemon"].setPokemonBitmap(@pokemon)
|
@sprites["pokemon"].setPokemonBitmap(@pokemon)
|
||||||
@sprites["pokeicon"] = PokemonIconSprite.new(@pokemon,@viewport)
|
@sprites["pokeicon"] = PokemonIconSprite.new(@pokemon,@viewport)
|
||||||
@sprites["pokeicon"].setOffset(PictureOrigin::Center)
|
@sprites["pokeicon"].setOffset(PictureOrigin::Center)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2015,7 +2015,7 @@ Pokemon = B130H299,71 #GARDOS
|
|||||||
[LEADER_Surge,Lt. Surge]
|
[LEADER_Surge,Lt. Surge]
|
||||||
Items = SUPERPOTION,SUPERPOTION
|
Items = SUPERPOTION,SUPERPOTION
|
||||||
Pokemon = B98H100,24 #voltby,
|
Pokemon = B98H100,24 #voltby,
|
||||||
Moves = METALCLAW,BUBBLEBEAM,LIGHTSCREEN,SPARK
|
Moves = METALCLAW,BUBBLE,LIGHTSCREEN,SPARK
|
||||||
AbilityIndex = 1
|
AbilityIndex = 1
|
||||||
Item = MAGNET
|
Item = MAGNET
|
||||||
Pokemon = B17H25,24 #Pikeotto,
|
Pokemon = B17H25,24 #Pikeotto,
|
||||||
|
|||||||
Reference in New Issue
Block a user