YesNoOk
avatar

Sharingan? How could this be accomplished? (Read 823 times)

Started by Fayτ, April 13, 2011, 12:35:43 am
Share this topic:
Sharingan? How could this be accomplished?
#1  April 13, 2011, 12:35:43 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
How would I go about coding a sharingan?

I want the opponent to move at half normal speed when they are within
< or = to 100 distance away from p1. I also want the characters and stage to turn gray scale without affecting the lifebars and other effects. Any help would be greatly appreciated.

I also want the explod/helper for the area of affect of the sharingan to follow p1 wherever they are on screen
Re: Sharingan? How could this be accomplished?
#2  April 13, 2011, 01:44:02 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
Bump
Re: Sharingan? How could this be accomplished?
#3  April 13, 2011, 01:46:56 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You waited 1 hour! ONE!

Just for that you can wait another hour.

Do not bump your topics.


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: Sharingan? How could this be accomplished?
#4  April 13, 2011, 01:48:34 am
  • ******
  • Put molly all in her champagne, she don een kno it
    • http://khumass.tumblr.com/
Please don't bump your own topics, especially considering you posted it an hour ago. No one is online all day, and just because someone didn't respond immediately doesn't mean you'll never get a reply.

I mean, you waited just 1 freaking hour. Be more patient.

EDIT: FUCK YOU CYANIDE YOU BEAT ME TO IT.
Re: Sharingan? How could this be accomplished?
#5  April 13, 2011, 03:02:44 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
Lol sorry..You know how coding is..Something you have to be in the mood for..I was in the mood for it at the time..
Re: Sharingan? How could this be accomplished?
#6  April 13, 2011, 03:12:34 am
  • ******
  • [E]
    • Mexico

  • Online
you, don't bump your topics.


/bump]
Re: Sharingan? How could this be accomplished?
#7  April 13, 2011, 10:23:49 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
slowdown is achieved in state -2 with the following

pause
gametime%2 = 0
time = 1
movetime = 1

You cannot make p2 grey and leave the lifebars coloured. You can make everything grey, or you can make the BG grey.

[mcode]allpalfx bgpalfx[/mcode]
AllPalFX will turn everything, including p2 and lifebars grey. BGPalFX will just do the BG, you can't seperate out any further because you can't apply FX to p2 like that without leaving him in a custom state.


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: Sharingan? How could this be accomplished?
#8  April 13, 2011, 10:36:56 pm
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
So like this? 

Code:
[Statedef -2]

[State -2, BGPalFX]
type =AllpalFX
trigger1 = var(3) = 1
time = 1
add = 50,50,50
mul = 150,150,150
sinadd = -80,-80,-80,10
invertall = 1
color = 0



[State -2, Pause]
type = Pause
trigger1 = var(3) = gametime%2 = 0
triggerall=p2dist x < 100
time = 1
movetime = 1
darken = 1

Re: Sharingan? How could this be accomplished?
#9  April 13, 2011, 10:40:22 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
your pause is wrong. I'll let you sort out where you messed up, it's not too obscure.


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: Sharingan? How could this be accomplished?
#10  May 11, 2011, 12:21:37 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
I cant seem tofigure out what is wrong with the pause.If its so obscure why cant I seem to figure it out
Re: Sharingan? How could this be accomplished?
#11  May 11, 2011, 02:47:16 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
trigger1 = var(3) = gametime%2 = 0

that? When var(3) = the result of gametime%2 = 0?

Seperate them. var(3) && gametime


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: Sharingan? How could this be accomplished?
#12  May 11, 2011, 02:56:14 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
trigger1 = var(3) = gametime%2 = 0

that? When var(3) = the result of gametime%2 = 0?

Seperate them. var(3) && gametime
Wow..damn Im stupid XD thanks

Edit:Still not working even after that change o.o
Last Edit: May 11, 2011, 03:18:22 am by Edward Elric
Re: Sharingan? How could this be accomplished?
#13  May 11, 2011, 03:50:24 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
...

What do you actually have now. See the base pause which i gave you above works perfectly

type = pause
trigger1 = gametime%2 = 0
time = 1
movetime = 1

Now, you have altered that so it will only take effect apparently when var(3) has a value. I'm assuming that value is not 0. I don't know what value it is using. And you also have applied a requirement for p2 to be really close to you. p2dist X< 100 isn't that much.


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: Sharingan? How could this be accomplished?
#14  May 11, 2011, 03:56:42 am
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
Shouldn't triggerall go before trigger1 ?
Show us your new code.
Re: Sharingan? How could this be accomplished?
#15  May 11, 2011, 04:01:06 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
[State -2, Pause]
type = Pause
trigger1 = var(3)&&gametime%2 = 0
triggerall=p2dist x < 30
time = 1
movetime = 1
darken = 1

The p2dist x < 100 from before was just for testing purposes
Re: Sharingan? How could this be accomplished?
#16  May 11, 2011, 04:10:58 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
What is your ground.width.front? If it's 16, and then you walk RIGHT to p2, and his is 16 as well, his p2dist is 32. Will not trigger. Ever.

Null the triggerall. Bet it works.


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: Sharingan? How could this be accomplished?
#17  May 11, 2011, 04:25:35 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
Still not working..I tryed it a while back on one of my other chars when i was making this code..everything worked fine..I copy and pasted to this new one and all of a sudden i have issues..I dont get it

Code:
; Sharingan Activate
[StateDef 901]
Type = S
movetype = A
physics = S
anim = 901
ctrl = 0
poweradd = -100



[State 901, PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = S9,20
volume = 80
channel = 0

[State 901, Explod]
type = Explod
trigger1 = !animtime
anim = 903
ID = 1
pos = 0,0
postype = left  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermovetime = 10000
pausemovetime = 10000
scale = .3,.3
sprpriority = 0
ontop = 0
shadow = 0,0,0
ownpal = 0
removeongethit = 0


[State 901, VarSet]
type = VarSet
trigger1 = animelem = 3
v = 3
value = 1

[State 901, End]
type = changestate
trigger1 = !animtime
value = 0
ctrl = 1


; Sharingan Off
[StateDef 902]
type = S
movetype = A
anim = 904
velset = 0,0
ctrl = 0

[State 902, RemoveExplod]
type = RemoveExplod
trigger1 = time = 0
id = 2

[State 902, NotHitBy]
type = NotHitBy
trigger1 = time = 0
value = SCA
time = 40

[State 902, varset]
type = varset
trigger1 = time = 3
v = 3
value = 0

[State 902, End]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1




[Statedef -2]

[State -2, BGPalFX]
type =AllpalFX
trigger1 = var(3) = 1
time = 1
add = 50,50,50
mul = 150,150,150
sinadd = -80,-80,-80,10
invertall = 1
color = 0




[State -2, Pause]
type = Pause
trigger1 = var(3)&&gametime%2 = 0
time = 1
movetime = 1
darken = 1



[State -2, RemoveExplod]
type = RemoveExplod
trigger1 = power <= 0
id = 2

[State -2, PowerAdd]
type = PowerAdd
trigger1 = var(3) = 1
value = -1

[State -2, VarSet]
type = VarSet
trigger1 = var(3) = 1 & power <= 0
v = 3
value = 0

Do you see any other problems?
Re: Sharingan? How could this be accomplished?
#18  May 11, 2011, 06:38:06 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
[statedef -2] can only be defined once. Make sure you don't have 2 of them.

I see nothing else.


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: Sharingan? How could this be accomplished?
#19  May 11, 2011, 07:05:56 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
Still nothing even after removing the very first statedef -2
Re: Sharingan? How could this be accomplished?
#20  May 11, 2011, 07:27:06 am
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
For state -2 stuff, is only the pause not working, or also AllPalFX and poweradd ?
Re: Sharingan? How could this be accomplished?
#21  May 11, 2011, 07:28:24 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
None of it is working
Re: Sharingan? How could this be accomplished?
#22  May 11, 2011, 07:32:45 am
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
Where did you place your statedef -2 stuff ?
Make sure it's at the whole end of your CNS. Copy paste everything from [statedef -2] to whatever is related to this at the end of your CNS, but before [statedef -3] (if it exists)
Re: Sharingan? How could this be accomplished?
#23  May 11, 2011, 07:35:35 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
I have all of this in its own CNS. but Ill try it and see if that changes things

Edit:Nope still nothing
Re: Sharingan? How could this be accomplished?
#24  May 11, 2011, 08:48:19 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Something dumb, i trust your activation state HAS an animelem = 3?


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: Sharingan? How could this be accomplished?
#25  May 11, 2011, 09:52:42 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
Yes it does

Edit:It is now working I just had to move the code to one CNS.

Last Edit: May 11, 2011, 09:58:10 am by Edward Elric
Re: Sharingan? How could this be accomplished?
#26  May 12, 2011, 01:22:59 am
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
Did you happen to not define your other CNS file in the DEF file of the character ? ::)
Re: Sharingan? How could this be accomplished?
#27  May 12, 2011, 02:10:38 am
  • ****
  • Coder and Voice Actor
    • USA
    • Skype - byakuyaownsyou
    • www.youtube.com/vicmigderpaderp

  • Online
I did.For some reason it was just being picky about placement of things is all...