YesNoOk
avatar

Projectile got stuck... (Read 567 times)

Started by DNZRX768, February 24, 2008, 02:59:44 am
Share this topic:
Projectile got stuck...
#1  February 24, 2008, 02:59:44 am
  • *****
  • Hug Pikachus!
    • USA
I am making a move where a "pikachu mail" will fly from behind Pikachu and hit the enemy.

However, sometimes the projectile will get stuck and stop in midair...

What is happening...
Hug the Pikachus!

Hug A Pikachu Today!
Re: Projectile got stuck...
#2  February 24, 2008, 04:11:55 am
  • avatar
  • ***
Post the coding for it.
Re: Projectile got stuck...
#3  February 24, 2008, 04:12:41 am
  • *****
  • Hug Pikachus!
    • USA
[Statedef 1040]
type=S
movetype=A
physics=S
poweradd=-1000
ctrl=0
velset=0
anim=1000
juggle = 15

[State 1040 , 1]
type=SuperPause
trigger1=Time = 1
sound = 20, 0
pos=-8, -31

[State 1040 , 2]
type=PlaySnd
trigger1=Time = 1
value=4,0

[State 1040 , 3]
type=PlaySnd
trigger1=Time = 6
value=1,0

[State 1040 , 4]
type=Projectile
trigger1 = Time = 36
trigger2 = Time = 40
trigger3 = Time = 44
trigger4 = Time = 48
trigger5 = Time = 52
trigger6 = Time = 56
trigger7 = Time = 60
trigger8 = Time = 64
trigger9 = Time = 68
projanim=1040
projhitanim=1040
offset=-200, -45
velocity=20, 0
projhits=50
projmisstime=2
attr=S, HP
damage=7,6
getpower=0
animtype=Medium
guardflag=MA
pausetime=0,10
sparkxy=10, 0
hitsound=5,3
guardsound=6,0
ground.type=Low
ground.slidetime=14
ground.hittime=16
ground.velocity=-8
air.animtype=Back
air.velocity=-2.5,-5
air.juggle=3


[State 1040 , 5]
type=AfterImageTime
trigger1=Time >= 0
time=5

[State 802 , 6]
type=ChangeState
trigger1 = StateTime > 70
value=0
ctrl=1

[State 1040 , 7]
type=PlaySnd
trigger1=AnimElem = 5
value=5,0
Hug the Pikachus!

Hug A Pikachu Today!
Re: Projectile got stuck...
#4  February 24, 2008, 04:20:11 am
  • avatar
  • ***
Re: Projectile got stuck...
#5  February 24, 2008, 04:28:56 am
  • *****
  • Hug Pikachus!
    • USA
I think you don't understand the problem,

the projectiles are summoned but they tend to freeze on the edge of the screen.
Hug the Pikachus!

Hug A Pikachu Today!
Re: Projectile got stuck...
#6  February 24, 2008, 04:45:11 am
  • avatar
  • ***
I understand to a degree, I just couldn't find the answer, but I did catch that other thing.

If it only gets stuck at the edge of the screen try adding

projscreenbound = 100
Re: Projectile got stuck...
New #7  February 24, 2008, 02:38:23 pm
  • *****
  • Hug Pikachus!
    • USA
sorry, it is not working (may in fact made the problem worse...)

Edit: never mind, I decided to use helpers/strikers instead...
Hug the Pikachus!

Hug A Pikachu Today!
Last Edit: February 24, 2008, 04:20:30 pm by DNZRX768