May 23, 2012, 01:06:20 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Riding Animal Script  (Read 468 times)
Merrie
Full Member
***
Posts: 149



View Profile
« on: May 15, 2009, 06:37:44 PM »

I need a little refresher on getting scripts running. I have a horse and a avatar, how do set up the mount script, I would put that on the player or horse?

Any help is appreciated.
Logged

+---+---+----+----+----+----+----+----+----+----+----+----+
Vibe GameCore Training Graduate
3D Modeler - 3DS Max, AC3D, Gimp
GameCore Indie, Windows XP Media, Alienware Area 51 7500
zknack
Full Member
***
Posts: 207


View Profile
« Reply #1 on: May 20, 2009, 11:57:52 AM »

Merrie,

That would be setup on the horse (vehicle),

You'll have to setup a attach point as well, and either use motion blending, or a seperate set of animations for the rider.
I am also working on getting a horse & rider working, so- if I beat you to finishing this, I'll post my code in here for you
(and others) to use.. With luck someone will beat me to it though ;-) as my ability to write code, well- sucks.

However I really don't see it too much different than setting up a vehicle (planning on effectively copying the vehicle in
the adventure game, but utilizing my horse animations for it's movements, and then build in the motion blending for
attacks afterwards.

Doc links that may help:

Rider attachment help-
http://www.gamecore3d.com/docs/user-guide/scripting/default-library/Misc/attach_point.gsl

Potential to use to simulate the 'bounce' of riding-
http://www.gamecore3d.com/docs/opr/AddJoint

Vehicle (potential) help-
http://www.gamecore3d.com/docs/user-guide/scripting/default-library/Vehicles/vehicle_4wheel.gsl

And of course the default vehicle script in the adventure game demo.
Logged
gekido
Guest
« Reply #2 on: May 20, 2009, 12:44:31 PM »

Technically you don't necessarily need to make a horse a vehicle - but you'd probably want some kind of custom script that is designed to handle the animations a bit more.  I guess the vehicle script could be a starting point though.

The basics of 'riding' objects is the inventory system.

For example, in the situation where a player picks up a weapon (ie the weapon is added to the player's inventory), the weapon is technically 'riding' the player - ie it will move & be positioned relative to the player

In the situation where the player rides a vehicle (or a horse), the player is added to the horses inventory, and moves relative to the horse.
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!