collapse

Author Topic: changing stance according to power bar  (Read 526 times)

0 Members and 1 Guest are viewing this topic.

Offline Marancv

  • Spriting Masta and
  • IMT Content Architect
  • *
  • Posts: 1945
  • Last Login:December 05, 2019, 01:31:04 PM
  • Check out My NEW SITE! ;P
    • marancv's Hidden Place
changing stance according to power bar
« on: April 21, 2008, 02:45:00 PM »
i want my Violent Ryu to change to a new stance i draw when he reaches max power.
i have this stance code:
Quote
;====================<STANDING>====================
[Statedef 0]
type=S
physics=S
movetype=I
velset=0,0
sprpriority=0

[State 0, gone]
type=removeexplod
trigger1=ishelper
[State 0, gone]
type=destroyself
trigger1=ishelper

[State 0, anim]
type=changeanim
trigger1=((var(1)!=2)&&anim!=0)||(var(1)=2&&anim!=1)
trigger1=anim!=5
trigger2=anim=5&&!animtime
value=ifelse(var(1)=2,1,0)

[State 0, pos]
type=posset
trigger1=!time
y=0
[State 0, dead]
type=changestate
trigger1=!alive
value=5050

so i added this:
Quote
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = (Anim = 1 || Anim = 5) && power >= 3000
value = (here i put the new stance value..)
persistent = 1

but it doesnt work at all, it causes me to ryu persist in every state, infinitly until i do a new command.. can anyone help meh?
thx in advance

and yeah, i kinda suck in coding lol



Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: changing stance according to power bar
« Reply #1 on: April 21, 2008, 11:24:29 PM »
in the other anims you could as a triggerall =power <=2999  these will make that when the power is 3000 you only have one anim to choose


El triggerall va a limitar el uso de las animaciones, y solamenete se podran usar esas cuando tengas menos de 3000, asi que cuando tengas 3000 solamente haya una que se pueda elegir


sig made by shullbocka

Offline Marancv

  • Spriting Masta and
  • IMT Content Architect
  • *
  • Posts: 1945
  • Last Login:December 05, 2019, 01:31:04 PM
  • Check out My NEW SITE! ;P
    • marancv's Hidden Place
Re: changing stance according to power bar
« Reply #2 on: April 22, 2008, 11:43:11 AM »
the triggerall was a good idea, but it remain in infinite states, until i figured out:
was about the variable mode, so i corrected it:
Quote
[State 0, anim]
type=changeanim
trigger1=((var(1)!=2)&&anim!=0)||(var(1)=2&&anim!=1)
trigger1=anim!=5
trigger2=anim=5&&!animtime
triggerall= power <=2999
value=ifelse(var(1)=2,1,0)
[State 0, ChangeAnim]
type = ChangeAnim
trigger1= power >=3000
trigger1 = ((var(1)!=2)&&anim!=0)||(var(1)=2&&anim!=3)
value = 3
persistent = 0

now works perfectly! ;)
thx Fallen. hope this helps anyone more

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

Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


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]


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

* 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