collapse

Author Topic: Please , need some help !  (Read 361 times)

0 Members and 3 Guests are viewing this topic.

Offline Grayskull

  • Initiate
  • **
  • Posts: 131
  • Last Login:April 13, 2011, 11:19:51 AM
  • Thanks to Hollow Boy for this marvelous avatar ;)
Please , need some help !
« on: April 12, 2011, 09:34:39 AM »
Hi ,
I need some little help on coding and editing :

Well I wanted to add a new move using 2 animations :

anim 200 and 240

Anim 200 is long so I used a loop , but the loop never stop and ignore the changestate to 240

I would like to add a time to define the duration of the anim 200 and find a way to move to the changestate to 240

Thank you all in advance. ;)

Here is the code (if something is wrong , please let me know)

Quote
[Statedef 200]
type = S
movetype = A
physics = S
anim = 200
poweradd = 20
juggle = 10
velset = 0
ctrl = 0
facep2 = 1


[State 200, 1]
type = PlaySnd
trigger1 = AnimElem = 2
value = 0,0

[State 200, 1]
type = PlaySnd
trigger1 = AnimElem = 95
value = 3000,20

[State 200, 2]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
damage = 20
animtype = light
hitflag = MAF
guardflag = MA
sparkno = s4100
guard.sparkno = s4500
sparkxy = 0,-60
hitsound = S0,5
guardsound = S3,0
pausetime = 12,12
ground.type = high
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = high
air.velocity = -1.4,-3
air.hittime = 12


[State 200, 3]
type = ChangeState
trigger1 = AnimTime = 0
value = 240
ctrl = 1

Post Merge: April 13, 2011, 11:19:51 AM
I made it successfully

just changed changestate into chageanim , now it works !

if someone now the code to add a mask at the first plan

I don't know the code either the Sprpriority to use to add a mask that will come at first plan and the player would be behind this mask (something like smoke)

thanks in advance .
« Last Edit: April 13, 2011, 11:19:51 AM by Grayskull »



Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: Please , need some help !
« Reply #1 on: April 27, 2011, 08:03:02 PM »
The error in your changestate is that you are using animtime =0    ; so if you are looping the anim, you will never reach the end of the anim.....I know you have already solved these, but if you want to control it by time simply use time = # .

For the "mask", use an explod or a helper.....if you want it for a simple smoke I suggest that you use an explod, if you want to have more control of it, use a helper.

If you need help with these, let me know


sig made by shullbocka

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12473
  • Country: Brazil br
  • Last Login:September 07, 2024, 07:23:21 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Please , need some help !
« Reply #2 on: April 28, 2011, 10:52:57 PM »
[State 200, 3]
type = ChangeState
trigger1 = Anim= 200 && Time = 200; choose whatever you want to
value = 240
ctrl = 1

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