collapse

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

thunderstrike eric masterson by wacky thaxie
[September 26, 2024, 06:09:19 PM]


Classic VS : Balrog by ELECTRO
[September 25, 2024, 11:44:58 PM]


Justice League Seattle Stage by Vegaz by LightFlare
[September 23, 2024, 12:14:06 PM]


Ancient Gears Stage 1.1 & 1.0 by MatreroG
[September 20, 2024, 11:59:18 AM]


Justice League Metropolis Stage by Vegaz by LightFlare
[September 16, 2024, 11:57:49 AM]


Ultimate Mai Shiranui (FF2 & FF3) by nickfurry
[September 15, 2024, 02:27:53 AM]


Justice League Gotham Stage by Vegaz by LightFlare
[September 11, 2024, 09:41:42 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[September 07, 2024, 03:06:46 AM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[September 06, 2024, 01:27:09 PM]


Justice League Flash Stage by Vegaz by LightFlare
[September 03, 2024, 10:30:40 AM]

* IMT Calendar

September 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