YesNoOk
avatar

player pushing? (Read 375 times)

Started by Shinnox, September 07, 2009, 11:47:24 pm
Share this topic:
player pushing?
#1  September 07, 2009, 11:47:24 pm
  • avatar
  • ***
i have a move where p2 is supposed to stay stationary (kind of like a freeze move) but when i run in to combo or attack, p2 is pushed back...is there a way to disable this so p1 doesnt push p2 back?
Re: player pushing?
#2  September 07, 2009, 11:50:55 pm
  • ******
  • [E]
    • Mexico
your topic's title answers your question.
Re: player pushing?
#3  September 07, 2009, 11:57:01 pm
  • avatar
  • ***
if i walk towards player 2, i can push them across the stage, and i need them to stay where they are frozen.

ive tried using the playerpush code, but its not helping any.

if value = 0, then i just pass thru them.

Re: player pushing?
#4  September 08, 2009, 12:07:38 am
  • ******
  • [E]
    • Mexico
so
you said that you don't want to push them, so passing thru them is ok.

Re: player pushing?
#5  September 08, 2009, 12:40:44 am
  • avatar
  • ***
no, i dont want to pass through them

basically, i want player1 to stop and not be able to push player 2 across the floor. to give the effect that player 2 is like a wall and player 1 cant move him by walking/running/etc
Re: player pushing?
#6  September 08, 2009, 12:47:43 am
  • ******
  • [E]
    • Mexico
ok, then add a velset to p1 so velX is never bigger that p2dist.
Re: player pushing?
#7  September 08, 2009, 01:12:55 am
  • avatar
  • ***
Code:
[state ]
type = velset
trigger1 = p2stateno = 4003
trigger1 = p2bodydist x =[0,10]
x = 0

i did this, which works...but once i get within range, i can no longer walk backwards
Re: player pushing?
#8  September 08, 2009, 01:18:31 am
  • ******
  • [E]
    • Mexico
add trigger1 = vel X > 10
Re: player pushing?
#9  September 08, 2009, 01:21:18 am
  • avatar
  • **
Also, you may want to add in p2movetype = H (or some other trigger that I likely forgot about) to prevent glitches in the case of Player 2 being in his own State 4003
Re: player pushing?
#10  September 08, 2009, 01:39:18 am
  • avatar
  • ***
thanks guys