Projectile problems

Started by Carmell, March 05, 2008, 09:16:02 PM

Previous topic - Next topic

Carmell

Okay I've been working on a mugen project

I have all the spritework done and the character looks real nice

However Im not much of a coder

I have a friend helping me somewhat. However he's having a hard time finding free time to help me figure out stuff.

Im also sort of an oral learner. I have trouble learning from just reading. So please bear with my possible stupidity and maybe a nice character will be released.


Well anyway I've run into a few problems

My main issue in this thread is if I jump into the air and then use the projectile move the character gets locked at that height until I jump. This is probably something very basic. I keep screwing around with the code and yet I cant find the culprit.


Here is the code since I know youre supposed to paste the code.

My friend was studying Ciel so for now some of the code is from Ciel. BUT I PLAN TO CHANGE IT. I know how upset you people get about code theft.

[Statedef 290]
type = S
movetype = A
physics = S
poweradd = 50
anim = 290
velset = 0,0
ctrl = 0

[State 290, 2]
type = Helper
trigger1 = AnimElem = 3
name = "projectile"
ID = 300
stateno = 300
helpertype = normal
keyctrl = 0
ignorehitpause = 1
postype = p1
pos = 20,-24

[State 290, End]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[Statedef 300]
type = S
movetype = A
physics = N
anim = 193
velset = 9,0

[State 300, Hitdef]
type = Hitdef
trigger1 = Time >= 0 && MoveContact = 0
attr = S, SP;A
animtype = Hard
damage = 50
hitflag = MAF
guardflag = M
priority = 4, Hit
pausetime = 11,10
sparkno = -1;SVar(11)
sparkxy = -8,-38
guard.sparkno = S8090
hitsound = s22,0;
guardsound = s39,0;
ground.type = Hight
ground.slidetime = 18
ground.hittime = 20;11
ground.velocity = -3,0
air.velocity = -3,-2
envshake.time = 10
envshake.freq = 74;68
envshake.ampl = 6
P1StateNo = 311

[State 300, 3]
type = DestroySelf
trigger1 = FrontEdgeBodyDist <= -100



The other problems I have.

2. This is a big one.
The projectile can be spammed which is definitely something I dont want.

3. I have 2 other animations I want to randomly come up instead of the current projectile animation but I have no clue how to even begin to do that

4. The projectile keeps on going after hitting the target. Ideally, I want it to repel after contact and flicker and disappear, but for now I'll settle for disappear period.


Any help is GREATLY appreciated

Bastard Mami

Quote from: Carmell on March 05, 2008, 09:16:02 PM
Im also sort of an oral learner. I have trouble learning from just reading. So please bear with my possible stupidity and maybe a nice character will be released.
...
Any help is GREATLY appreciated

http://www.research.att.com/~ttsweb/tts/demo.php


http://www.microsoft.com/reader/developers/downloads/tts.mspx

Carmell

Not exactly what I meant by oral learner...

Just need someone to point out how it works in a not overcomplicated way

recruta42


Carmell

Not only did that not work but when I changed it he could no longer perform the move on the ground. He's not even supposed to be able to perform the move in the air in the first place.

So I thought maybe you meant the projectile
but when I changed that thing's physics to A it started making sprite copies of my character after impact

Fallen_angel

Quote from: Carmell on March 06, 2008, 03:06:16 PM
Not only did that not work but when I changed it he could no longer perform the move on the ground. He's not even supposed to be able to perform the move in the air in the first place.

limit the usage of the projectil with a stateype = S  && statetype !=A

DemonicDrPhil

this topic should have been in development help.  not only would the replies be sans sarcasm but people might have pointed you in the right direction
Latest Yoshi alpha ready for feedback Aug 15th check here for details...