YesNoOk
avatar

BGFX (Read 403 times)

Started by Geese, April 25, 2009, 04:23:20 am
Share this topic:
BGFX
#1  April 25, 2009, 04:23:20 am
  • **
Code:
[State 3001, Superpause FX]
type = Helper
trigger1 = Time = 3
id = 8000
name = "Super"
pos = 28,-108
postype = P1
stateno = ifelse((var(20)=[3,5]),8010,8000)
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
;pausemovetime = 999999
supermovetime = 999999
size.xscale = 1
size.yscale = 1

~

[Statedef 8000]
type    = A
movetype= I
physics = N
anim = 8000
velset = 0,0
ctrl = 0
sprpriority = 5

[State 200,PlaySnd]
type = PlaySnd
trigger1 = Time = 1
value = 8300,0

[State 3000, BGFx]
type = BGPalFX
trigger1 = time < 47
time = 1
color = 1
mul = 192,0,0
ignorehitpause = 1

 :P

So yeah. I'm sure you guys know what you are looking at. Now to see if posting this code was necessary at all.

Character A's super is Statedef 3000.
This super is coded to do different versions based on what command you do ie: d,f,x d,f, d,f,z
The code above ,as you know, determines the backround effects for when the super is done.

My question is... How can i make the backround effects different for each version of the super?
"If there is a god he pities you. If there is no god I pity you."
Re: BGFX
#2  April 25, 2009, 09:12:35 pm
  • **
So, This is how far I've gotten.

Lets lay the framework.

Spoiler, click to toggle visibilty

If you read the above post all im trying to do is add backround effects for different levels of supers. The supers are all in the same state def and theres already a trigger to activate the backround effects. But, this applies the same effect to all 3 supers. I want indevidual effects for each level. It's obvious im doing this all wrong. But, a friend helped me get this far with some useful advice and now im stuck. The video below details that problem im having.




The backround when he does the level 2 version is red just like i want it to be. But, as you can see now the super itself is all messed up. It doesn't come out unless you charge it all the way and there's way too much whoosh when he activates it. The vid really helps illustrate what im talking about.

Any and all help is appreciate it. Even if its just a link to a tutorial or something. Thanks for everyone's help.
"If there is a god he pities you. If there is no god I pity you."