Crowd attack

Started by Dominic Maraschiello, April 23, 2011, 10:22:59 PM

Previous topic - Next topic

Dominic Maraschiello

I wanted to make a crowd attack for my character and I was wondering if anyone knew how to code it.
By crowd attack I mean... People running across the screen causing damage as they hit the opponent.

Trying to make a comeback

MDD

So.....like Tron Bonne's Lunch Rush hyper?

Diepod

Spriting is hard.

Lasombra Demon

http://www.youtube.com/watch?v=VYrNsrG9-Ig

I've done something similar, check 1:15. Easily done with helpers, y'know. :)
For downloads and questions, go to IKEMEÑ:  https://discord.gg/rweS5ZUek3

For donations go to https://ko-fi.com/lasombrademon

Dominic Maraschiello

Quote from: MalaDingDong on April 23, 2011, 10:36:36 PM
So.....like Tron Bonne's Lunch Rush hyper?

Yes and thanks Lasombra.

Trying to make a comeback

Dominic Maraschiello

How do you make the sprites disappear off screen?

Trying to make a comeback

Cyanide

What? If you're using helpers, use destroyself when the screen is behind them. If it's a projectile that particular feature should be in the controller.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Dominic Maraschiello

Thanks.
Also, do you know how to make the sprite appear from off screen?

Trying to make a comeback

Rajaa Retired

Use back or front for the position type and adjust the pos value accordingly. Assuming you're talking about a helper.

DNZRX768

If you are still stuck, here is an example with Pikachu's Air Mail Attack (which I assume is the type you want)
;Pikachu Air Mail
[Statedef 1040]
type=S
movetype=A
physics=S
poweradd=-1000
ctrl=0
velset=0
anim=1000
juggle = 15

[State 1040 , 1]
type=SuperPause
trigger1=Time = 1
sound = 20, 0
pos=-8, -31

[State 1040 , 2]
type=PlaySnd
trigger1=Time = 1
value=4,0

[State 1040 , 3]
type=PlaySnd
trigger1=Time = 6
value=1,0


;Create pika mail
[State 1040, 4]
type = Helper
trigger1 = Time = 36
trigger2 = Time = 48
trigger3 = Time = 59
ID = 1041
name = "mail pika 1"
StateNo = 9000
postype = back
pos = -45, 0
ownpal = 1

;Create pika mail
[State 1040, 5]
type = Helper
trigger1 = Time = 40
trigger2 = Time = 58
trigger3 = Time = 63
ID = 1042
name = "mail pika 2"
StateNo = 9001
postype = back
pos = -45, -8
ownpal = 1


;Create pika mail
[State 1040, 6]
type = Helper
trigger1 = Time = 36
trigger2 = Time = 54
trigger3 = Time = 60
ID = 1043
name = "mail pika 3"
StateNo = 9002
postype = back
pos = -45, -16
ownpal = 1


;Create pika mail
[State 1040, 7]
type = Helper
trigger1 = Time = 45
trigger2 = Time = 48
ID = 1044
name = "mail pika 4"
StateNo = 9003
postype = back
pos = -45, -24
ownpal = 1


;Create pika mail
[State 1040, 8]
type = Helper
trigger1 = Time = 50
trigger2 = Time = 58
ID = 1045
name = "mail pika 5"
StateNo = 9004
postype = back
pos = -45, -32
ownpal = 1

[State 1040 , 10]
type=ChangeState
trigger1 = Time > 65
value=0
ctrl=1


and for the helpers themselves:
;stuff for the mail pikachus!
[Statedef 9000]
type = A
movetype = A
physics = n
anim = (1040+(random%4))
sprpriority = 3
velset = ((random%4)+4), 0

[State 9000, 2]
type = NotHitBy
trigger1 = 1
value = ,AT

[State 9000, 3]
type = HitOverride
trigger1 = Time >= 0
attr = SCA, NA, SA, HA, NP, SP, HP, AT
stateno = anim+10
time = -1

[State 9000, 6]
type = HitDef
trigger1 = time = 0
attr = A, HA
hitflag = MAFD
guardflag = MA
pausetime = 1, 11
priority = 7, Hit
animtype = Hard
damage = 10, 2
sparkno = 3
sparkxy = -5, -34
hitsound = 5, 3
guardsound = 6, 0
ground.type = high
ground.velocity = -1.5
air.type = low
air.velocity = -1.5
air.hittime = 20
down.velocity = -1.5
down.hittime = 20
guard.slidetime = 21
guard.hittime = 21
guard.velocity = -8
fall = 1
air.fall = 1
fall.recover = 0
givepower = 35
getpower = 0

[State 9000, 7]
type = ParentVarAdd
trigger1 = MoveHit
v = 11
value = 1

[State 9000, 7a]
type = ParentVarSet
trigger1 = MoveHit
v = 25
value = 2

[State 9000, 8]
type = MoveHitReset
trigger1 = MoveHit

[State 9000, 9]
type = DestroySelf
trigger1 = Facing = 1
trigger1 = ScreenPos X >= 410
trigger2 = Facing = -1
trigger2 = ScreenPos X <= -90


and if one of them gets smacked:
;"Hit! 1"
[Statedef 1050]
type = A
physics = N
movetype = A
ctrl = 0
anim = 1050
velset = -6,-5
sprpriority = 5

[State 1050]
type = DestroySelf
trigger1 = BackEdgeDist < 12
;trigger2 = Time = 60
ctrl = 0
value = 0
Hug the Pikachus!

Hug A Pikachu Today!

Dominic Maraschiello


Trying to make a comeback