Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to achieve Player behavior the “Player Data” not defined?like magic and fly #1039

Open
ghost opened this issue Jun 29, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 29, 2023

as i understand for now its(player data) approach for shoot game,then how to make magic game.please give a code how-to or video,thanks

@Azaezel
Copy link
Contributor

Azaezel commented Jul 2, 2023

https://github.com/Torque3DResources/FPSPlayer contains the lion's share of code and art required for a particular player model, keybinds, and datablock definition (datablocks being the shared data across all object instances of a particularized class variant. so max health of a wizard vs a fighter as opposed to that particular object instance's current health). As a derivative of the shapebase class, that includes several utilities for one-off animation playback, as well as support for mounting shapebaseimages, which we demonstrate in several forms https://github.com/Torque3DResources/FPSEquipment if you prefer a swappable prefabricated FSM with callbacks approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant