Is this possible ?

There are no stupid questions, just stupid answers.
6 posts Page 1 of 1
Razer
Posts: 3
Joined: Tue Jan 10, 2017 11:29 am
by Razer » Tue Jan 10, 2017 11:39 am
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 theyr are hit ?
Duion
Posts: 654
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Jan 10, 2017 12:38 pm
I would just use the jetpack function that is already there for the levitating stuff.
Razer
Posts: 3
Joined: Tue Jan 10, 2017 11:29 am
by Razer » Wed Jan 11, 2017 12:31 am
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 ?
Duion
Posts: 654
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Wed Jan 11, 2017 12:55 am
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 ... #L784-L792
Also look above for the particles needed.
Then you need a function to activate it:
https://github.com/Duion/Uebergame/blob ... #L586-L589
And then bind it to a key:
https://github.com/Duion/Uebergame/blob ... d.cs#L1169
Not guaranteed to work, just an example, I commented it out since I have no use for it in my game yet.
JeffR
Steering Committee
Steering Committee
Posts: 659
Joined: Tue Feb 03, 2015 9:49 pm
 
by JeffR » Thu Jan 12, 2017 4:31 pm
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.
Duion
Posts: 654
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jan 12, 2017 4:41 pm
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.
6 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest