Giving the Chaos Emeralds extra frames?

Status
Not open for further replies.

SonicX8000

Graphic & Sprite Modder.
Judge
EDIT: Manage to get the emerald working correctly on maps and such with some help. THIS is what the script is suppose to be for them.
-- Green Emerald in Maps
//states
states[S_CEMG1] = {SPR_CEMG,FF_FULLBRIGHT|0,4,A_None,0,0,S_GGEMC1}
states[S_GGEMC1] = {SPR_EMERA0,FF_FULLBRIGHT|0,4,A_None,0,0,S_GGEMC2}
states[S_GGEMC2] = {SPR_EMERB0,FF_FULLBRIGHT|1,4,A_None,0,0,S_GGEMC3}
states[S_GGEMC3] = {SPR_EMERC0,FF_FULLBRIGHT|2,4,A_None,0,0,S_CEMG1}
And with that. The results. *Only showing the Green Emerald since once that got working the rest of the emerald should be no problem.*
srb20013.gif


Now all there's left to do is to have the emeralds during Nights Mode orbit correctly. This is what's currently in the script.
--Green Emerald in Special Stages
//states
states[S_ORBITEM1] = {SPR_CEMG,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO1}
states[S_GGEMO1] = {SPR_CEMG,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO2}
states[S_GGEMO2] = {SPR_CEMG,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO3}
states[S_GGEMO3] = {SPR_CEMG,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO4}
states[S_GGEMO4] = {SPR_EMER,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO5}
states[S_GGEMO5] = {SPR_EMER,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO6}
states[S_GGEMO6] = {SPR_EMER,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO7}
states[S_GGEMO7] = {SPR_EMER,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO8}
states[S_GGEMO8] = {SPR_EMER,FF_FULLBRIGHT|1,1,A_OrbitNights,0,0,S_GGEMO9}
states[S_GGEMO9] = {SPR_EMER,FF_FULLBRIGHT|1,1,A_OrbitNights,0,0,S_GGEMO10}
states[S_GGEMO10] = {SPR_EMER,FF_FULLBRIGHT|1,1,A_OrbitNights,0,0,S_GGEMO11}
states[S_GGEMO11] = {SPR_EMER,FF_FULLBRIGHT|1,1,A_OrbitNights,0,0,S_GGEMO12}
states[S_GGEMO12] = {SPR_EMER,FF_FULLBRIGHT|2,1,A_OrbitNights,0,0,S_GGEMO13}
states[S_GGEMO13] = {SPR_EMER,FF_FULLBRIGHT|2,1,A_OrbitNights,0,0,S_GGEMO14}
states[S_GGEMO14] = {SPR_EMER,FF_FULLBRIGHT|2,1,A_OrbitNights,0,0,S_GGEMO15}
states[S_GGEMO15] = {SPR_EMER,FF_FULLBRIGHT|2,1,A_OrbitNights,0,0,S_GGEMO16}
states[S_GGEMO16] = {SPR_CEMG,FF_FULLBRIGHT|0,1,A_OrbitNights,0,0,S_GGEMO1}
And which that... this happens. *Note: The massive states are needed since I think the orbit has to be 1 tic per frame so repeat Sprite A for 4 frames per 1 tic then switch to Sprite B for 4 frames per 1 tic, etc. Also WHY is the spoiler tag showing a space in S_GGEMOx? There aren't any spaces in the script.*
srb2help1.gif


Any solutions to this will be very helpful.
==========
EDIT: After being linked to a list for the source, I was able to finally fix them. Turns out I was missing a detail in var.
states[S_ORBITEM1] = {SPR_CEMG,FF_FULLBRIGHT|0,1,A_OrbitNights,ANG2*2,0,S_GGEMO1}
Yes, ANG2*2 is what I needed and with that...
srb2aaaaaaaa.gif

Everything works now, thanks to all for the solutions.
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top