YesNoOk

Show content

This section allows you to browse the content for this member. Note that you can only see content for which you have sufficient viewing permissions.

*
Crase is Offline
Contact Crase:

Crase

User

Messages by Crase

    

Moving Helpers

 March 27, 2008, 12:39:50 am View in topic context
avatar  Posted by Crase  in Moving Helpers (Started by Crase March 27, 2008, 12:39:50 am
 Board: M.U.G.E.N Development Help

This ties into my last topic.. Fortunately, I corrected my errors and unfortunately I encountered a problem.. My clone, I am trying to get him to move accurately... (I have searched the help forum for helper topics, and they're a plethora of topics, I may have found some that were quite useful, but didnt help me completely)

The problem is, that Im not really good with distance checking and stuff like that so I need a way to make the helper move to the right toward p2 when he is to the left of p2 and not in attacking distance... And vice-versa for the other direction (move left when right of p2)

Here is what I had, but of course it's a starter and not 100% what I want:
[mcode]
[Statedef 999]
type = S
physics = S
sprpriority = 0

[State 999, velset]
type = velset
trigger1 = p2dist x >= 45 ;This needs changing in order to get what I want I believe
x = const(velocity.run.fwd.x)

[State 999, ChangeAnim]
type = ChangeAnim
trigger1 = Const(velocity.run.fwd.x)
trigger1 = Anim != 20
value = 20
elem = 1
[/mcode]

~Thanks
    

Two ChangeStates in one code?

 March 25, 2008, 01:01:25 am View in topic context
avatar  Posted by Crase  in Two ChangeStates in one code? (Started by Crase March 25, 2008, 01:01:25 am
 Board: M.U.G.E.N Development Help

FIXED
    

Re: "Timing Problem"

 March 18, 2008, 03:51:27 am View in topic context
avatar  Posted by Crase  in "Timing Problem" (Started by Crase March 15, 2008, 01:12:06 am
 Board: M.U.G.E.N Development Help

Whether it's important to you or not, I tried your suggestion and it worked... So I would like to use the post to thankyou...

    

"Timing Problem"

 March 15, 2008, 01:12:06 am View in topic context
avatar  Posted by Crase  in "Timing Problem" (Started by Crase March 15, 2008, 01:12:06 am
 Board: M.U.G.E.N Development Help

Umm... I need help executing my 3rd attack state once my 2nd attack state is finished... I at first thought that I should just make the trigger condition possible if the AnimTime of the 2nd atk state equaled 0, but the 3rd attack state never displays.. Here's my code:

[mcode]
[statedef -1]

[State -1, ChangeState]
type = ChangeState
value = 200
triggerall = command = "x"
trigger1 = statetype = s && ctrl

[State -1, ChangeAnim]
type = ChangeAnim
value = 210
triggerall = command = "x"
trigger1 = anim = 200 && anim != 210

[State -1, ChangeAnim]
type = ChangeAnim
value = 230
triggerall = command = "x"
trigger1 = anim = 210 && anim != 230 && AnimTime = 0
[/mcode]

Thanks