YesNoOk
avatar

Helpers...Friction...? Possible?! (Read 747 times)

Started by dsm33606, November 25, 2010, 10:37:37 am
Share this topic:
Helpers...Friction...? Possible?!
#1  November 25, 2010, 10:37:37 am
  • avatar
  • **
I was wondering how do I make my player Im using recognize if the helper Im throwing makes contact so I'll be able to change the current state of the player - for instance much lke K' sunglass throw attack from KoF.. how he tosses them and if they make contact with the enemy he changes states and dashes to them for a combo.
Last Edit: December 02, 2010, 05:53:43 am by dsm33606

2OS

Re: Making the player recognize helper attacks?
#2  November 25, 2010, 10:47:19 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
Give your helper an ID and make a changestate that redirects to that helper hitting something


[State 2OS]
type=helper
trigger1=!numhelper(2)
ID=2
.  .  .

[State 2OS]
type=changestate
trigger1=helper(2),movehit
.  .  .


If you want your char to change state even if the enemy blocks it, use movecontact instead of movehit


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
PalFX for projectiles?
#3  November 25, 2010, 11:23:07 am
  • avatar
  • **
Still not working correctly... here is the code for the helper that is being thrown.

;--------------Hyper Toss------------------
[Statedef 197]
type = S
movetype = A
physics = S
ctrl = 0
anim = 196
velset = 0,0
sprpriority = 0

[State 0, VelSet]
type = VelSet
trigger1 = time <= 20
x = 2
y = -4
;ignorehitpause =
;persistent =


[State 0, VelSet]
type = VelSet
trigger1 = time = [21,31]
x = 1.5
y = 0
;ignorehitpause =
;persistent =


[State 0, VelSet]
type = VelSet
trigger1 = time > 32
x = 2
y = 5
;ignorehitpause =
;persistent =

[State 0, PalFX]
type = PalFX
trigger1 = 1
time = 100
add = 255,215,0
mul = 256,256,256
;sinadd = 0,0,0,10
invertall = 1
color = 0
ignorehitpause = 1
;persistent =


[State 200, HitDef]
type = HitDef
trigger1 = time = 0
attr = S,NP
damage = 1,0
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 9, Hit
pausetime = 4,11
sparkno = s7770
sparkxy = -10, -60
guard.sparkno = s6767
hitsound = 5,0
guardsound = 6,0
ground.type = High
ground.slidetime = 1
ground.hittime  = 90
ground.velocity = -1
air.type = Low
air.hittime = 90
air.velocity = -1,-1
envshake.time = 1
envshake.ampl = 1


[State 197, ChangeState]
type = ChangeState
trigger1 = helper(5), movecontact
value = 3001
ctrl = 0

[State 197, DestroySelf]
type = DestroySelf
trigger1 = time = 70
ignorehitpause = 1
;persistent =
Last Edit: November 27, 2010, 06:20:40 am by dsm33606

2OS

Re: Making the player recognize helper attacks?
#4  November 25, 2010, 12:00:05 pm
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
[State 197, ChangeState]
type = ChangeState
trigger1 = helper(5), movecontact
value = 3001
ctrl = 0

^ Put that in the ROOT state, not the helper state


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Making the player recognize helper attacks?
#5  November 25, 2010, 10:22:44 pm
  • avatar
  • **
Thanks! its work great :D umm offtopic... know a good site where I can get sprites of huge sub weapons?
Re: Making the player recognize helper attacks?
#6  November 26, 2010, 06:23:06 pm
  • avatar
  • ****
New: PalFX of a Projectile
#7  November 27, 2010, 06:19:54 am
  • avatar
  • **
Last topic - Solved and thanks :)


Is there a way to change the palfx of a projectile alone without affecting the character shooting it?  ..and also without making the projectile into a helper.

2OS

Re: Making the player recognize helper attacks?
#8  November 27, 2010, 06:44:23 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
^ No


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Making the player recognize helper attacks?
#9  November 27, 2010, 06:55:11 am
  • avatar
  • **
Ok Thanks, was just curious.. my next question is um how would I go about making an object tank damage for a certain amount of hits, like a wall.

This is what I thought of so far, and Im failing hardcore with it lol

This is the helper itself

[Statedef 3334]
type    = S
movetype= A
physics = S
juggle  = 0
ctrl = 0
anim = 3334
poweradd = 0
sprpriority = 9




[State 3334, DestroySelf]
type = DestroySelf
trigger1 = helper(1666),gethitvar(hitcount) >= 10
trigger2 = helper(1666),gethitvar(damage) >= 300
ignorehitpause = 1
;persistent =
Re: New issue in topic!!! (How to create a wall like object that can tank hits)
#10  November 29, 2010, 08:14:17 pm
  • avatar
  • ****
you could just make it vanish after some point in time. I'm not sure if you can determine how much damage it took or how many hits it took.
Re: New issue in topic!!! (How to create a wall like object that can tank hits)
#11  November 29, 2010, 08:32:48 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Movetype = A, you won't be able to do gethitvar anything. Try movetype = H instead, although that's not personally how i'd do that attack it ought to function.


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: New issue in topic!!! (How to create a wall like object that can tank hits)
#12  November 29, 2010, 08:39:41 pm
  • avatar
  • ****
hum...really using hit state, that's good to know.

How would you have done things?
Re: New issue in topic!!! (How to create a wall like object that can tank hits)
#13  November 29, 2010, 08:49:11 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
type = hitoverride
trigger1 = 1
stateno = 3334
value = SCA

type = varadd
trigger1 = time = 0
v = blah
value = 1

destroyself
trigger1= var(blah) = 10


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: New issue in topic!!! (How to create a wall like object that can tank hits)
#14  November 29, 2010, 09:11:30 pm
  • avatar
  • ****
But I think he wants to wall to take only so much damage. A timer can't do that, but it may be less buggy I guess.
Re: New issue in topic!!! (How to create a wall like object that can tank hits)
#15  November 29, 2010, 09:56:55 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
That's 10 hits, not a timer. You can work with damage too.


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: New issue in topic!!! (How to create a wall like object that can tank hits)
#16  December 01, 2010, 06:51:37 am
  • avatar
  • **
Hmm it still defaults to my characters sprites instead of its own when it gets hit

[Statedef 3334]
type    = S
movetype= H
physics = S
juggle  = 0
ctrl = 0
anim = 3334
poweradd = 0
sprpriority = 9

type = hitoverride
trigger1 = 1
stateno = 3334
value = SCA

type = varadd
trigger1 = time = 0
v = 27
value = 1

[State 3334]
type = destroyself
trigger1= var(27) = 10
Re: New issue in topic!!! (How to create a wall like object that can tank hits)
#17  December 01, 2010, 07:50:17 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
lkasjdhgfio834579087y98^*(&#(*%&ualskdfhgoa8uy4903875908345t7u9o8f

At what point did i say "copy paste this"? Edit it so it fits. You just shoved it in and changed a couple of bits. Do the whole flaming lot.

I NEVER give copy paste code. Ever. People should learn on their own not paste in someone elses work and have to ask next time.


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: New issue in topic!!! (How to create a wall like object that can tank hits)
#18  December 02, 2010, 05:23:24 am
  • avatar
  • **
Lolol thanks I got it working :D and your code was kinda copy and paste just was too noob to check the attr... >.<!
Re: Helpers...Friction...? Possible?!
#19  December 02, 2010, 05:54:59 am
  • avatar
  • **
I was wonderig is it possible to add friction to helpers, so that P2 can not pass them or P1 for that matter without jumping over them. Or is there another way I can make the helpers presence known?
Re: Helpers...Friction...? Possible?!
#20  December 02, 2010, 06:48:05 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
[mcode]playerpush[/mcode]


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: Helpers...Friction...? Possible?!
#21  December 02, 2010, 01:19:49 pm
  • ***
  • Life is Life... WTF!!
    • www.mugenimperiolatino.com/index.php
[

Nice userbars no? :P Make click & Download something nice for your Mugen!!!
________________________________
Re: Helpers...Friction...? Possible?!
#22  December 03, 2010, 04:54:29 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Forgot about that, wasn't even SLIGHTLY thinking of the fact someone might have a helper that hangs round and does stuff but cannot be hit.


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: Helpers...Friction...? Possible?!
#23  December 05, 2010, 10:36:47 am
  • avatar
  • **
Thanks alot for all your help, I have it nearly perfected - just having one prob... the player can still move the object itself by walking forward, I want it to be in a set position, tried posfreeze but think that only works for players...


Already had the boxes added from the start :P knew it had to get hit but didnt know how to make it get hit and stay in its current state but you and Cyanide got that worked out for me, thanks again
Re: Helpers...Friction...? Possible?!
#24  December 05, 2010, 08:30:23 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Use posset instead. Memorise your current position with 2 variables and then use a posset to those 2 variables Should hold you in place relatively well.


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.