Moving from Unity to Godot by Alan Thorn
Author:Alan Thorn
Language: eng
Format: epub
ISBN: 9781484259085
Publisher: Apress
Now, reselect the CollisionShape2D, and adjust the collision shape to match the character’s body. You don’t need to enclose the head, because when seen from a top-down perspective in a regular 2D level, it’s only the body that will collide with walls, doors, and objects. See Figure 4-20.
Figure 4-20Sizing the Circle Collider
This is great. We’ve got a fully configured player character. And now, finally, we can code player controls. To do this, select the root KinematicBody2D node, and create a new C# script from the Script field in the Inspector. The script should inherit from KinematicBody2D and be called PlayerControl. See Figure 4-21.
Figure 4-21Creating a New C# Script for Player Controls, Attached to the KinematicBody2D
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Blood, Sweat, and Pixels by Jason Schreier(3476)
Dawn of the New Everything by Jaron Lanier(2679)
Godot 4 Game Development Cookbook by Jeff Johnson(2480)
The Art of Doom by Bethesda(2035)
Significant Zero by Walt Williams(1879)
Creative Character Design by Bryan Tillman(1834)
World of Warcraft Chronicle Volume 3 by Blizzard Entertainment(1655)
The Ultimate Roblox Book by David Jagneaux(1615)
Art Of Atari by Tim Lapetino(1559)
Pillars of Eternity Guidebook by Obsidian Entertainment(1533)
Dawn of the New Everything: Encounters with Reality and Virtual Reality by Jaron Lanier(1533)
1628927445Game by Unknown(1471)
Unreal Engine 4 Virtual Reality Projects by Kevin Mack(1468)
Unreal Engine Virtual Reality Quick Start Guide by Jessica Plowman(1445)
Mission Python by Sean McManus(1434)
The Ultimate Player's Guide to Minecraft by Stephen O'Brien(1417)
Learning D by 2015(1415)
Unity 2018 By Example by Alan Thorn(1390)
Road Games by Road Games(1365)
