collapse

Author Topic: Helper issues  (Read 381 times)

0 Members and 1 Guest are viewing this topic.

Offline Hellzone

  • Character Creator Newbie
  • Forum Member
  • ***
  • Posts: 278
  • Country: United States us
  • Last Login:April 11, 2019, 09:08:42 PM
    • Skype - defcon_awesome
    • ItzHellzone Gaming
    • Email
Helper issues
« on: December 05, 2014, 10:14:52 PM »
;Coffin Rain 500 Power Required
[Statedef 950]
type    = S                     
movetype= A                     
physics = S                     
juggle  = 1                     
velset = 0,0                     
ctrl = 0
anim = 900                                     
poweradd = -500               
sprpriority = 2 

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 0
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
time = 1

[State 0, Helper]
type = Helper
trigger1 = time%3=1 && time <245
name = "CoffinRain"
ID = 902
stateno = 902
pos = -200+random%600,-250;-200+random%400
facing = 1
keyctrl = 0
ownpal = 1
supermovetime = 0
pausemovetime = 0
       
[State 902, Helper]
type = Helper
trigger1 = time >= 260 && time%3=0
name = "CoffinRain"
ID = 902
stateno = 902
pos = -200+random%400,-250;-200+random%400
postype = p1
facing = 1
ownpal = 1
supermovetime = 0
pausemovetime = 0

[State 0, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1
 
;Coffin Fall
[Statedef 902]
type    = S                     
movetype= A                     
physics = S                     
juggle  = 1                     
velset = 0,0                     
ctrl = 0                         
anim = 902                       
poweradd = 10                   
sprpriority = 2
               
[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
time = 1
ignorehitpause = 1

[State 902 1]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA                     
damage = 23, 0                   
animtype = Light                 
guardflag = MA                   
hitflag = MAF                   
priority = 3, Hit               
pausetime = 8, 8                 
sparkno = s1000                     
sparkxy = -10, -76               
hitsound = 5, 0                 
guardsound = 6, 0               
ground.type = High               
ground.slidetime = 5             
ground.hittime  = 11           
ground.velocity = -4             
airguard.velocity = -1.9,-.8     
air.type = High                 
air.velocity = -1.4,-3           
air.hittime = 15
numhits = 1
forcenofall = 1   

[State 0, VelSet]
type = VelSet
trigger1 = time < 3
x = 0
y = 1

[State 0, DestroySelf]
type = DestroySelf
trigger1 = pos y > 0 && vel y > 0

;Coffin Land State (Working On This Still)
[Statedef 903]
type    = U                     
movetype= I                     
physics = N                     
juggle  = 1                     
velset = 0,0                     
ctrl = 0                         
anim = 903                     
sprpriority = 2     

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
time = 1
ignorehitpause = 1

[State 0, Helper]
type = Helper
trigger1 = 1
name = "CoffinLand"
ID = 903
stateno = 903
pos = 0,0
postype = p1   
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = pos y > 0 && vel y > 0

i need help making the coffin stick to the ground when they rain down, i'm stuck and not sure how to code it

heres a screen shot



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Helper issues
« Reply #1 on: December 06, 2014, 02:05:07 AM »
Rather than using destroyself in 902, use changestate to the landing one. Physics N, set velocity to 0 with velset, set Y pos to 0 with posset. Don't set the X values at all, you want it to stay in place. Only use the destroyself on the landing version, don't call the helper in its own state either, otherwise they'll just spawn over and over (and break things), you need to take that out. Short form

Dropping helper
changestate on ground level
new state for helper when it's landed
lock position with velset and posset
destroyself after X ticks.

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Virtual Bart Science Fair by Lord_Enemil
[June 15, 2024, 08:23:51 PM]


Classic VS : Cheng / Athena by ELECTRO
[June 13, 2024, 03:03:58 PM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[June 10, 2024, 11:25:24 PM]


Street Fighter Spec Ops 2021 by O Ilusionista
[June 08, 2024, 01:36:06 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[June 06, 2024, 07:34:10 PM]


Kirby the Dream Battle by O Ilusionista
[June 06, 2024, 01:04:12 PM]


Neo Geo Pocket by malevka2
[June 05, 2024, 10:53:57 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]

* IMT Calendar

June 2024
Sun Mon Tue Wed Thu Fri Sat
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
[16] 17 18 19 20 21 22
23 24 25 26 27 28 29
30

SimplePortal 2.3.5 © 2008-2012, SimplePortal