Thread: [Question] Badges on Trainer Card
View Single Post
  #4    
Old September 3rd, 2012 (01:30 PM). Edited September 3rd, 2012 by Maruno.
Maruno's Avatar
Maruno Maruno is online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,557
Code:
y=198
imagePositions=[]
for region in 0...5 # Five rows
  x=72
  for i in 0...8
    if $Trainer.badges[i+region*8]
      imagePositions.push( ["Graphics/Pictures/badges",x,y,i*32,region*32,32,32])
    end
    x+=48
  end
  y+=32
end
Change/add the red parts.
__________________
Reply With Quote