Thread: [Question] Badges on Trainer Card
View Single Post
  #4  
Unread September 3rd, 2012, 09:30 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Gender: Male
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.
__________________

Last edited by Maruno; September 3rd, 2012 at 09:49 PM. Reason: Fixed the code.
Reply With Quote