How to create a Pokemon game for BEGINNERS (NO CODING)

0
95000-ZtLVQNpyUpM

How to create a Pokemon game in Godot for BEGINNERS
no coding knowledge needed.

Download Godot: https://godotengine.org/download/windows/
Download Paint.net https://paint.net/download.html
Find Sprites(Use at your own risk): https://www.spriters-resource.com

Project settings:

advanced settings = on (blue)
default clear color = black
viewport width = 1920
viewport height = 1080
window width override = 942
window height override = 535
use nearest mipmap filter = on
default texture filter = nearest
default texture repeat = disabled
stretch (mode)= canvas_items
aspect = keep
project settings – input map = (create upkey, downkey, leftkey, rightkey)

Root code:

extends Node

var gamepaused = true
var currentmenu = “root”

func _ready():
startthegame()

func startthegame():
gamepaused = false
currentmenu = “game”
update_menu_visibility()

func update_menu_visibility():
for child in get_children():
var is_current_menu = child.name == currentmenu
var is_immune = child.rootvisibilityimmune if “rootvisibilityimmune” in child else false

child.visible = is_current_menu or is_immune

Player code:
extends CharacterBody2D

@onready var currentmenu: Node2D = $”..”
@onready var root: Node2D = $”../..”
@onready var animation_player: AnimationPlayer = $AnimationPlayer

var speed = 500
var last_direction = “down”
var current_direction = “”

func _ready():
animation_player.play(“down”)
animation_player.pause()
animation_player.seek(0.001)

func _process(_delta):
if root.gamepaused or not currentmenu.visible:
return

if Input.is_action_pressed(“upkey”):
current_direction = “up”
elif Input.is_action_pressed(“leftkey”):
current_direction = “left”
elif Input.is_action_pressed(“rightkey”):
current_direction = “right”
elif Input.is_action_pressed(“downkey”):
current_direction = “down”
else:
current_direction = “”

if current_direction != “”:
last_direction = current_direction
move_in_direction(current_direction, _delta)
play_animation(cu…

Loading

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です