collapse

Author Topic: to code a free fall controlled  (Read 301 times)

0 Members and 1 Guest are viewing this topic.

Offline warriorz

  • Initiate
  • **
  • Posts: 131
  • Last Login:June 01, 2024, 04:31:15 PM
    • Email
to code a free fall controlled
« on: July 07, 2009, 10:21:07 AM »
next problem, teachers...

watch this video:
http://s226.photobucket.com/albums/dd197/warriorz000/?action=view&current=clip0001.flv

now, you see this hyper..
what i can move it during his fall? move it only forward or back during the fall.

this is the part of code more interesting for this "operation" (i erase some sctrl as playsnds, explods, etc):

[Statedef 1200]
type    = A
movetype= A
physics = S
ctrl = 1
anim = 1200
poweradd = -1750
velset = 0,0
sprpriority = 1

[State 0, VelSet] ;fly
type = VelSet
trigger1 = time = 8
x = 0
y = -7.5

[State 0, PosSet]  ; initial position before fall
type = PosSet
trigger1 = animelem = 5
x = 0
y = -400

[State 0, VelSet] ;fall
type = VelSet
trigger1 = time = 90
x = 0
y = 4.5

[State 1200, HitDef]   
type = HitDef      
...
...      

[State 0, VelSet] ;stop his fall
type = VelSet
trigger1 = time = 180
x = 0
y = 0

[State 0, VelSet] ;back after hit
type = VelSet
trigger1 = time = 200
x = -11.5
y = 0

[State 0, PosSet]  ;final position with his feet on ground as the standing pose
type = PosSet
trigger1 = animtime = 0
y = 0

[State 1200, f]
type = ChangeState
trigger1 = AnimTime = 0
value = 12
ctrl = 1



Offline El Chupacabras

  • Forum Member
  • ***
  • Posts: 315
  • Last Login:June 11, 2010, 04:34:36 PM
Re: to code a free fall controlled
« Reply #1 on: July 07, 2009, 06:47:50 PM »
I'm not sure what you're asking... are you wondering why you can move it during the fall? If so, it's because you have ctrl = 1. You can change it to 0 during the fall so you won't be able to move.

Offline warriorz

  • Initiate
  • **
  • Posts: 131
  • Last Login:June 01, 2024, 04:31:15 PM
    • Email
Re: to code a free fall controlled
« Reply #2 on: July 08, 2009, 03:47:36 AM »
no. i would to move it during the fall.. i set ctrl = 1 because I thought that i could move it in forward and back direction.. but nop! i need to do it.. i don't want that the char fall directly, on the same vertical line, from sky..

Offline ClubSyN-X-TReME

  • Character and Interactive Stage Specialist
  • Club Syndicate Admin
  • *
  • Posts: 1641
  • Last Login:July 28, 2014, 06:54:54 AM
    • Club SyN -X-treme
Re: to code a free fall controlled
« Reply #3 on: July 08, 2009, 08:26:35 AM »
try removing

velset = 0,0

Offline warriorz

  • Initiate
  • **
  • Posts: 131
  • Last Login:June 01, 2024, 04:31:15 PM
    • Email
Re: to code a free fall controlled
« Reply #4 on: July 08, 2009, 09:03:38 AM »
i find the solution, i add:

[State 0, VelSet] ;scende
type = VelSet
trigger1 = command = "holdfwd"
x = 2.5

[State 0, VelSet] ;scende
type = VelSet
trigger1 = command = "holdback"
x = -2.5
« Last Edit: July 08, 2009, 11:28:42 AM by warriorz »

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Classic VS : Cheng / Athena by ELECTRO
[June 13, 2024, 03:03:58 PM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[June 10, 2024, 11:25:24 PM]


Street Fighter Spec Ops 2021 by O Ilusionista
[June 08, 2024, 01:36:06 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[June 06, 2024, 07:34:10 PM]


Kirby the Dream Battle by O Ilusionista
[June 06, 2024, 01:04:12 PM]


Neo Geo Pocket by malevka2
[June 05, 2024, 10:53:57 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]


D2TD VS Showcase Thread by D2TD
[May 31, 2024, 11:44:23 AM]

* IMT Calendar

June 2024
Sun Mon Tue Wed Thu Fri Sat
1
2 3 4 5 6 7 8
9 10 11 12 13 14 [15]
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30

No calendar events were found.
SimplePortal 2.3.5 © 2008-2012, SimplePortal