collapse

Author Topic: Helper issues  (Read 417 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

Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by ExShadow
[November 02, 2024, 04:54:41 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]


Rooftop Skyline(1.1 Only/AIGS) by Vegaz by LightFlare
[October 21, 2024, 12:13:37 PM]


Secluded Base(1.1 Only/AIGS) by Vegaz by LightFlare
[October 17, 2024, 01:21:06 PM]


Ultimate Balrog + stage by ELECTRO
[October 17, 2024, 05:40:31 AM]


Eternal Lament Stage 1.1 & 1.0 by MatreroG
[October 11, 2024, 05:03:17 PM]


Classic VS : Balrog by ELECTRO
[October 08, 2024, 04:35:53 PM]


IMT Tutorials and Documentation gone? by tehdevil
[October 06, 2024, 04:25:52 AM]


Justice League Themyscira Stage by Vegaz by LightFlare
[October 04, 2024, 08:23:57 AM]


D2TD VS Showcase Thread by D2TD
[September 30, 2024, 12:29:35 AM]

* IMT Calendar

November 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