YesNoOk
avatar

Flight Troubles  (Read 392 times)

Started by AzulSonic, August 16, 2008, 04:16:46 am
Share this topic:
Flight Troubles
#1  August 16, 2008, 04:16:46 am
  • *
  • Eh...?
ok the flight has a bug in it and i cant find out what  ???, its like when he flies he quickly descends by himself D:

so far i got:

;Super sonic fliGHT
[state -1]
type = changestate
value = 1000
triggerall = command = "up" && stateno != 100 && stateno != 105
trigger1 = statetype = A
trigger1 = ctrl = 1

================================================================
; Super Sonic flight
[Statedef 1000]
type    = A
movetype= I
physics = A
ctrl = 0
anim = 1

[state 1000]
type = velset
trigger1 = time > 0
y = 0.1

[state 1000]
type = velset
trigger1 = vel X>= 4
x = 8

[state 1000]
type = velset
trigger1 = vel X<= -4
x = -8

[state 1000]
type = veladd
trigger1 = command = "holdfwd" && vel X<= 2
x = 10

[state 1000]
type = veladd
trigger1 = command = "holdback" && vel X>= -2
x = -10

[state 1000]
type = veladd
trigger1 = command = "holdup" && vel y>= -2
y = -3

[state 1000]
type = veladd
trigger1 = command = "holddown" && vel y>= -2
y = 3

[state 1000]
type = velset
trigger1 = command != "holdback" && command != "holdfwd"
x = 0

[state 1000]
type = turn
trigger1 = p2bodydist X< -20

[state 1000]
type = changestate
triggerall = time > 20
trigger1 = Pos Y >= -30
trigger2 = winko
value = 44
ctrl = 0

[statedef 1001]
type = A
movetype = I
physics = A
anim = anim
ctrl = 1

[state 1001]
type = playsnd
trigger1 = time = 0
value = F65,2
volume = 255

[state 1001]
type = changestate
trigger1 = time = 1
value = 50
ctrl = 1






Re: Flight Troubles
#2  August 16, 2008, 04:25:00 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
[state 1000]
type = velset
trigger1 = time > 0
y = 0.1

This has it so your character goes down throughout the whole state.

Also you have a Physics=A change to physics=N

edit: alos for th changestate into the landing state use pos y >-30 && vel y >0  which means you have to be going down to go into the landing state.

I personally use Posadds for flying but your way is efficient enough i guess if you want a superjet :P
Last Edit: August 16, 2008, 04:32:18 am by RajaaBoy
Re: Flight Troubles
#3  August 16, 2008, 04:37:13 am
  • *
  • Eh...?
thank you Raja  8)
Re: Flight Troubles
#4  August 16, 2008, 04:42:01 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
No Problem :sugoi: