collapse

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

0 Members and 1 Guest are viewing this topic.

Offline warriorz

  • Initiate
  • **
  • Posts: 131
  • Last Login:September 21, 2024, 04:07:50 AM
    • 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:September 21, 2024, 04:07:50 AM
    • 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:September 21, 2024, 04:07:50 AM
    • 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

thunderstrike eric masterson by wacky thaxie
[September 26, 2024, 06:09:19 PM]


Classic VS : Balrog by ELECTRO
[September 25, 2024, 11:44:58 PM]


Justice League Seattle Stage by Vegaz by LightFlare
[September 23, 2024, 12:14:06 PM]


Ancient Gears Stage 1.1 & 1.0 by MatreroG
[September 20, 2024, 11:59:18 AM]


Justice League Metropolis Stage by Vegaz by LightFlare
[September 16, 2024, 11:57:49 AM]


Ultimate Mai Shiranui (FF2 & FF3) by nickfurry
[September 15, 2024, 02:27:53 AM]


Justice League Gotham Stage by Vegaz by LightFlare
[September 11, 2024, 09:41:42 AM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[September 07, 2024, 03:06:46 AM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[September 06, 2024, 01:27:09 PM]


Justice League Flash Stage by Vegaz by LightFlare
[September 03, 2024, 10:30:40 AM]

* IMT Calendar

September 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

SimplePortal 2.3.5 © 2008-2012, SimplePortal