YesNoOk
avatar

Problem with Helpers sprpriority during Stage Activity (Read 718 times)

Started by Cenobite 53, October 31, 2012, 05:54:24 am
Share this topic:
Problem with Helpers sprpriority during Stage Activity
#1  October 31, 2012, 05:54:24 am
  • ****
  • Angry Molesting Tree
  • Auf gehts ab gehts 3 Tage wach
    • Germany
    • cenobite53.mugengermany.com/
I've tried around a little bit with Stage interactivity. Son I've set a Helper that Shoots a shock sometimes.
I've set hier sprpriorty to -5 cause I wanted it to be behind the chars the whole time, but after hittin the chars once they are behind him while standing/walking, but not while jumping Oo

here the code:
Code:
[Statedef -2]

;-----
;Stage Interactivity
[State 2000, BG Activity]
type = Helper
trigger1 = RoundState = 0  && Time = 0 && Facing = 1 && StageVar(info.displayname) = "Egypt"
helpertype = normal ;player
name = "Activity"
ID = 2000
stateno =  9001
pos = -160,-100
postype = front    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1

[Statedef 9001]
type    = A
movetype= A
physics = S
ctrl = 0
anim = 2000
sprpriority = -5

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 9001, HitDef]
type = HitDef
trigger1 = AnimElem = 3
attr = SCA,NA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag =      ;!!!   ;HLA
affectteam = B   ;!!!       ;B,E,F
animtype = hard          ;light,medium,hard,back,up,diagup
air.animtype = light
damage = 30,0
pausetime = 0 ,0
sparkxy = 0,0
hitsound = S1,0
air.hittime = 20
guard.dist = 0 ;!!!
ground.velocity = 0,0
air.velocity = 0,0
p1getp2facing = 0
fall = 1
fall.xvelocity = -3
fall.yvelocity = -4.5
fall.recover = 1
fall.recovertime = 4
fall.damage = 0
down.bounce = 0
hitonce = 0 ;!!!
palfx.time = 0
envshake.time = 0
fall.envshake.time = 0


And some pictures for better understanding:

The Chars before they got hit by the helper:


Ther Chars get hit


The Chars after they got hit by the helper:


The Chars after they got hit by the helper while jumping:



My Goal is to get them in front of the Helper the whole time
look at my sprite rips  HERE
look at my TMNT Project HERE
My Contribution to mugen: Stages: 897 | Chars: 8 | Fullgames: 1 | Spritesheets: 85
Re: Problem with Helpers sprpriority during Stage Activity
#2  October 31, 2012, 06:38:10 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Can't explain the jumping but. Set a sprpriority and assert it each tick with ignorehitpause = 1

Hitdefs apply a sprpriority too, it's overriding the original.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Problem with Helpers sprpriority during Stage Activity
#3  October 31, 2012, 02:32:00 pm
  • ****
  • Angry Molesting Tree
  • Auf gehts ab gehts 3 Tage wach
    • Germany
    • cenobite53.mugengermany.com/
Thanks, that works (works too with just giving sprpriority = -5 given to the Hitdef)

But I've noticed still another problem.

When I skip the fadein (Pre Intro/ RoundState = 0)by a button press the Helper will disapear. How can I fix that with the triggers?
I tought even if you skip it, it will be set.
look at my sprite rips  HERE
look at my TMNT Project HERE
My Contribution to mugen: Stages: 897 | Chars: 8 | Fullgames: 1 | Spritesheets: 85
Last Edit: October 31, 2012, 03:02:33 pm by Cenobite 53
Re: Problem with Helpers sprpriority during Stage Activity
#4  October 31, 2012, 08:18:43 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Change the creation to

Numhelper(2000) = 0 and remove the roundstate and time requirements. Skipping intro will always remove helpers. If it plays some sort of intro animation, have it skip that if roundstate = 2.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Problem with Helpers sprpriority during Stage Activity
#5  November 01, 2012, 10:50:21 pm
  • ****
  • Angry Molesting Tree
  • Auf gehts ab gehts 3 Tage wach
    • Germany
    • cenobite53.mugengermany.com/
Thanks, that worked perfectly

I've got the trigger now like this:
trigger1 = Numhelper(2000) = 0 && StageVar(info.displayname) = "Test BG" && Facing = 1

Now the problem is, that the helper duplicates when jumping over the player (because of the facing I guess), I don't get it since Numhelper(2000) is 1 the whole time, so how can it trigger again?

     Posted: November 01, 2012, 11:10:57 pm
I needed the facing so that the helper is only produced by one player. or is there another option for that?
look at my sprite rips  HERE
look at my TMNT Project HERE
My Contribution to mugen: Stages: 897 | Chars: 8 | Fullgames: 1 | Spritesheets: 85
Last Edit: November 01, 2012, 11:10:57 pm by Cenobite 53
Re: Problem with Helpers sprpriority during Stage Activity
#6  November 02, 2012, 04:00:45 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Teamside, but then they wouldn't create it if player 2, unless you only want it to be created by p1.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Problem with Helpers sprpriority during Stage Activity
#7  November 02, 2012, 01:22:37 pm
  • ****
  • Angry Molesting Tree
  • Auf gehts ab gehts 3 Tage wach
    • Germany
    • cenobite53.mugengermany.com/
Yeah it works now.
And yes I wanted it only created by one Player, since it is able to hit both players.
The only "not so nice" thing at this case is, that a 2hit Combo is shown for player 1 wenn it Hits both players. But I can live with that. Thanks for the help.
look at my sprite rips  HERE
look at my TMNT Project HERE
My Contribution to mugen: Stages: 897 | Chars: 8 | Fullgames: 1 | Spritesheets: 85