News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Sharingan? How could this be accomplished?

Started by Girku, April 13, 2011, 12:35:43 AM

Previous topic - Next topic

Girku

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


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.

MDD

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.

Girku

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..

Bastard Mami


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.

allpalfx bgpalfx
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.

Girku

So like this? 

[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


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.

Girku

I cant seem tofigure out what is wrong with the pause.If its so obscure why cant I seem to figure it out

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.

Girku

#11
Quote from: Cyanide on May 11, 2011, 02:47:16 AM
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

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.

Cybaster

Shouldn't triggerall go before trigger1 ?
Show us your new code.

Girku

[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

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.

Girku

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

; 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?

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.

Girku

Still nothing even after removing the very first statedef -2

Cybaster

For state -2 stuff, is only the pause not working, or also AllPalFX and poweradd ?