ok so for this code just put it into your common1.cns (so it will work on all characters).. or u can add the code into ur characters own cns/st file somewhere.
[Statedef 88888] ; GG Miniturize
type = S
movetype = I
physics = N
sprpriority = -5
velset = 0,0
ctrl = 0
[State 88888, 0]
type = Turn
trigger1 = parent,facing != facing
trigger1 = time = 0
ignorehitpause = 1
persistent = 1
[State 88888, Position of Miniturize]
type = OffSet
trigger1 = 1
x = IfElse(teamside = 1, -ScreenPos X +10, -ScreenPos X +300)
y = -ScreenPos Y +64
ignorehitpause = 1
persistent = 1
[State 88888, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
time = 1
ignorehitpause = 1
persistent = 1
[State 88888, Miniture Animation Code]
type = ChangeAnim
trigger1 = selfanimexist(parent,anim) && parent,anim != 5 && parent,anim != 6
elem = parent,animelemno(0)
value = parent, anim
then put into ur ACTUAL characters [Statedef -2] code section.
[State -2, helper]
type = helper
trigger1 = (teammode = single || teammode = turns) = 1
trigger1 = numhelper(88888) = 0
helpertype = normal
ID = 88888
stateno = 88888
name = "MiniGG"
postype = back
facing = 1
pos = 0, 0
keyctrl = 0
size.xscale = .31
size.yscale = .31
size.shadowoffset = 99999
persistent = 1
ignorehitpause = 1
oh and don't try to use this with zooming stages lol.. doesn't work out too well.. lol unless u can modify the code so it doesn't shrink the p2 icon