Razer Posted January 10, 2017 Share Posted January 10, 2017 (edited) Hi T3D fellows :D I am making a game about magic and mages clans, the game will use Torque Script. There is many tutorials, but i didn't found one that was dealing with player inputs to help me.The mage is from a model from a store and is able to levitate and walk above the air, how can i do that ?Something i don't understand is how to deal with mages projectiles hitting another mage, how do i know when they are hit ? Edited June 10, 2017 by Razer Quote Link to comment Share on other sites More sharing options...
Duion Posted January 10, 2017 Share Posted January 10, 2017 I would just use the jetpack function that is already there for the levitating stuff. Quote Link to comment Share on other sites More sharing options...
Razer Posted January 10, 2017 Author Share Posted January 10, 2017 Jetpack should work fine, is there some examples ? The game will also have different monster types, some will be able to taunt, others will be able to hide and seek the player mage, some others will be able to throw some poison trap on the floor.How it is done with scripting ? Must i use T3D functionnalities like the jetpack, or can it be made from scratch ? Quote Link to comment Share on other sites More sharing options...
Duion Posted January 10, 2017 Share Posted January 10, 2017 It is in the code, you have to search for it.Here is an example of the player datablock entries needed:https://github.com/Duion/Uebergame/blob/master/scripts/server/player.cs#L784-L792Also look above for the particles needed.Then you need a function to activate it:https://github.com/Duion/Uebergame/blob/master/scripts/client/default.bind.cs#L586-L589And then bind it to a key:https://github.com/Duion/Uebergame/blob/master/scripts/client/default.bind.cs#L1169Not guaranteed to work, just an example, I commented it out since I have no use for it in my game yet. Quote Link to comment Share on other sites More sharing options...
JeffR Posted January 12, 2017 Share Posted January 12, 2017 Another option, if you don't require it to be physically based, is to just edit the mesh/animations to make the character float off the ground. Quote Link to comment Share on other sites More sharing options...
Duion Posted January 12, 2017 Share Posted January 12, 2017 This will just make him look like he is levitating a bit above the ground, but he will "walk" on surfaces and fall down when there is no more ground under him. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.