Log in

I forgot my password

Latest topics
» Main Thread!
Wed Mar 27 2013, 19:06 by Myokan

» S.J. Ware v1.1
Fri Oct 12 2012, 23:54 by warox

» Hello, guys!
Sun Sep 30 2012, 20:25 by Sawyer

» Could you help me with my game?
Wed Jun 13 2012, 20:47 by manuxd123

» [RMXP] Pokemon Glacial Freeze Version
Wed May 09 2012, 08:20 by oldsnake90

» [RMXP] Pokemon: Imperial Sky
Wed Apr 18 2012, 03:46 by bebi123

» Pokémon AquaHarmony
Sat Feb 11 2012, 08:16 by BANGitsTyler

» Embedded Software Solutions
Tue Feb 07 2012, 08:27 by pokemontrainer1803

» Mah Doodles and Stuff
Sun Sep 25 2011, 17:30 by pokemontrainer1803

July 2014
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Top posters
Luka S.J. (81)
 
oldsnake90 (39)
 
Chriskid198 (39)
 
pokemontrainer1803 (25)
 
Me2Hack (22)
 
neonrider (15)
 
Carmaniac (11)
 
Gamer_Xtremo (11)
 
venom12 (10)
 
RosimInc (9)
 

Other Info
One of my close friends has released his first album ever. Don't miss out on it, be sure to get it from here.
Bank Policy

Forum Costs

Cost for making a Thead: $5

Cost for posting replies: $2

Earn Points $

by logging in every day: $20

by having a friend: $30

by posting profile messages: $10

by posting resources and tutorials: $2-$5


Visit the forum shop to buy some of our products.


Very Simple HoF system...

View previous topic View next topic Go down

Very Simple HoF system...

Post by zingzags on Mon Dec 13 2010, 06:02

Took about 10min to make

Spoiler:

class SceneHoF

def pbUpdate
pbUpdateSpriteHash(@sprites)
end

def pbEndScene
pbDisposeSpriteHash(@sprites)
@viewport.dispose
end

#placement for pokemon icons
def pbStartScene
@sprites={}
@viewport=Viewport.new(0,0,Graphics.width, Graphics.height)
@viewport.z=99999
#/Battlers/firstframe//%03d
@sprites["bg"]=Sprite.new(@viewport)
@sprites["bg"].bitmap = BitmapCache.load_bitmap("Graphics/save/saveBG")
@sprites["bg"].x=0
@sprites["bg"].y=400#340
@sprites["bg"].z=999998

if $Trainer.party.length>=1
@pkm1=Sprite.new
@pkm1=AnimatedSprite.create(sprintf("Graphics/Battlers/firstframe/%03d",$Trainer.party[0].species),1,1)
@pkm1.x=49
@pkm1.y=587
@pkm1.z=999999
@pkm1.start
end

if $Trainer.party.length>=2
@pkm2=Sprite.new
@pkm2=AnimatedSprite.create(sprintf("Graphics/Battlers/firstframe/%03d",$Trainer.party[1].species),1,1)
@pkm2.x=100
@pkm2.y=587
@pkm2.z=999999
@pkm2.start
end

if $Trainer.party.length>=3
@pkm3=Sprite.new
@pkm3=AnimatedSprite.create(sprintf("Graphics/Battlers/firstframe/%03d",$Trainer.party[2].species),1,1)
@pkm3.x=151
@pkm3.y=587
@pkm3.z=999999
@pkm3.start
end

if $Trainer.party.length>=4
@pkm4=Sprite.new
@pkm4=AnimatedSprite.create(sprintf("Graphics/Battlers/firstframe/%03d",$Trainer.party[3].species),1,1)
@pkm4.x=202
@pkm4.y=@pkm1.y
@pkm4.z=999999
@pkm4.start
end

if $Trainer.party.length>=5
@pkm5=Sprite.new
@pkm5=AnimatedSprite.create(sprintf("Graphics/Battlers/firstframe/%03d",$Trainer.party[4].species),1,1)
@pkm5.x=253
@pkm5.y=@pkm1.y
@pkm5.z=999999
@pkm5.start
end

if $Trainer.party.length==6
@pkm6=Sprite.new
@pkm6=AnimatedSprite.create(sprintf("Graphics/Battlers/firstframe/%03d",$Trainer.party[5].species),1,1)
@pkm6.x=304
@pkm6.y=@pkm1.y
@pkm6.z=999999
@pkm6.start





end

end




def pbScene
loop do
Graphics.update
Input.update
pbUpdate


Kernel.pbMessage(_INTL("Congradulations, You guys are the Elite Four Victors!!!"))
Kernel.pbMessage(_INTL("You, and your team of pokemon, has collected all eight pokemon badges, and defeated the elite four...."))
Kernel.pbMessage(_INTL("This is a momentus day, is there anything you guys will like to say?"))



# to make an exit use break
end
end
end

class HoFScreen
def initialize(scene)
@scene = scene
end
def pbStartScreen
@scene.pbStartScene
@scene.pbScene
@scene.pbEndScene
end
end




This is a very simple HoF system, after beating the elite four, I doubt many of you will reach this far but what they hay, I doubt I will probably reach this far too....


zingzags
Limited Member
Limited Member

Posts: 6
Join date: 2010-11-30

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum