GODOT How to Make a 3d ๐ฎ: ๐ GdScript Code in Description #gamedev
๐ฅThe final product of 8 hours of work in one day.
๐คI made helmets out of cgsmesh combined using subtract to hollow out a helmet sphere and added a mesh instance sphere for the visor.
๐ I used spheres cut in half for the pads and created a football from an Area + collider and two mesh instances for the football.
created in its own scene and called via
๐Put this in your Players script and use a Position 3d node attached to the parent node.
๐ขSet your balls flight x or z flight direction by using a variable.
func_physics_process(delta):
var direction_velocity = .05
translate_oject_local(Vector3(x,y, direction_velocity))
pass
๐ขNow CREATE a prwload to call the BALL from.the Players script.
const Football = preload("your scene".tscn)
var football = Football
func Throw_Football():
var football = Football.instance()
get_parent().add_child(football)
football.global_transform = $Position3d.global_transform
pass
๐ขHere's how to use it..
func_physic_process(delta):
if I put.is_action_just_pressed("ui_accept"):
Throw_Football()
pass
Indent correctly
Watch the two earlier posted videos and you'll see the progress I've made starting from scratch.
I'll post videos later this week on Collision and Area nodes and how I ut this game together.
And btw its already being posted to Amazon and Google as we speak.
For more ๐ https://www.nocapgamers.com/