assist problem

Started by the mummy, November 01, 2007, 11:42:00 PM

Previous topic - Next topic

the mummy

ok, so I was messing around with some assists, and I got one to work
my character summons chewbacca, he fires a few shots and jumps away.
everything works great except for two things; one, if done in the air my char just lands, like in the air.
two, the actual projanim does not have a transparent background. I checked, double checked, and triple checked
the actual sprite and the pallet for the projectile and I can't find the problem with it.

here is a video highlighting my problem:

http://www.youtube.com/watch?v=ElNVLQzY-CU

DemonicDrPhil

#1
black should be the last color or first color in the palette depending on the program used to make it.  make sure there is no other black in the palette.  as far as air version of the move make another changestate in the .cmd that has statetype=A I believe.

you need to just copy the whole state and make it not change to state 0 to keep him from waling on air
Latest Yoshi alpha ready for feedback Aug 15th check here for details...

the mummy

#2
I fiddled with it a bit, but it still doesn't work.
check out the code, maybe someone can better answer my question that way.
;chewie assist

[Statedef 800]
type    = C
movetype= I
physics = C
anim = 0
ctrl = 0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = animelem = 1
value = 0,4

[State 8999, 1]
type = velset
trigger1 = time >= 0
x = 0
y = 0

[State 800, 1]
type = poweradd
trigger1 = time = 0
value = -500

[State 800, 1]
type = Helper
trigger1 = Time = 0
trigger1 = facing = 1
trigger1 = numhelper(800) = 0
helpertype = normal
name = "chewie"
id = 800
postype = left
facing = 1
pos = 0,-60
stateno = 720
keyctrl = 0

[State 800, 1]
type = Helper
trigger1 = Time = 0
trigger1 = facing = -1
trigger1 = numhelper(800) = 0
helpertype = normal
name = "chewie"
id = 800
postype = right
facing = -1
pos = 0,-60
stateno = 720
keyctrl = 0

[State 800, End1]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[State 800, End2]
type = ChangeState
trigger1 = AnimTime = 0
trigger1 = P2BodyDist X <= 100
value = 0
ctrl = 1

[State 800, End3]
type = ChangeState
trigger1 = AnimTime = 0
trigger1 = P2BodyDist X > 100
value = 0

oh, and the black-ish colour is the same as the background colour on all the sprites used in the character
and assist

DemonicDrPhil

make sure it doesn't appear twice in the palette for the projectile and what you need to do to keep indiana jones from standing in mid air is just copy all of your code make a whole new state say 810 and change the last changestate to something other than 0.  then in your .cmd you have two changestates one that checks if you are standing and one to check if you are in the air.  for the first you change to 800 for the second you change to 810
Latest Yoshi alpha ready for feedback Aug 15th check here for details...

the mummy

ok I feel really stupid now, right on with the colour thing :sugoi:, but the assist is still buggy.
how do I  make it just not trigger in mid air? :-\

Cybaster

Quote from: the mummy on November 02, 2007, 11:22:05 AM
how do I  make it just not trigger in mid air? :-\
In the CMD, add a "triggerall= statetype!=A" (which means that the character must not be in an air state to perform the move, but can be standing or crouching)

the mummy

all problems resolved, thank you both for your help.