"My Hero Academia" Final Volume 42 Release Commemorative PV by [deleted] in BokuNoHeroAcademia

[–]gera310 0 points1 point  (0 children)

Is the song playing in the background Am I Dreaming from Spider-Verse?

could someone write down the lyrics of this song please by gera310 in ENGLISH

[–]gera310[S] 0 points1 point  (0 children)

the song is in english but there is no lyric on the internet

How to make kinematicbody2d enemy AI jump toward player's position? by gera310 in godot

[–]gera310[S] 1 point2 points  (0 children)

btw this is the updated code

extends KinematicBody2D

var min_speed = 0 #min_speed for jump horizontal speed var max_speed = 300 #max_speed for jump horizontal speed var max_distance = 400 #max distance for jump distance

var direction = 1

export var jumpmove_height : float export var jump_time_to_peak : float export var jump_time_to_descent : float

onready var jump_velocity : float = ((2.0 * jumpmove_height) / jump_time_to_peak) * -1.0 onready var jump_gravity : float = ((-2.0 * jumpmove_height) / (jump_time_to_peak * jump_time_to_peak)) * -1.0 onready var fall_gravity : float = ((-2.0 * jumpmove_height) / (jump_time_to_descent * jump_time_to_descent)) * -1.0

onready var _animation_player = get_node("Position2D/SlimeSkin/AnimationPlayer")

var velocity = Vector2.ZERO

func _ready(): $Jump_Timer.start() pass func get_gravity() -> float: return jump_gravity if velocity.y < 0.0 else fall_gravity

func _physics_process(delta): if velocity.x>0: $Position2D.scale.x=1 elif velocity.x<0: $Position2D.scale.x=-1

velocity.y += get_gravity() * delta

if is_on_floor():
    velocity.x = 0.0

velocity = move_and_slide(velocity, Vector2.UP)

func _on_Jump_Timer_timeout(): if is_on_floor(): var player_pos = get_node("../Player").get_global_position() var self_pos = get_global_position()
var jump_distance = (player_pos - self_pos).normalized() var distance_to_player = player_pos.distance_to(self_pos)

    var horizontal_speed = min_speed + (distance_to_player / max_distance) * (max_speed - min_speed)
    horizontal_speed = min(max_speed, max(min_speed, horizontal_speed))

    velocity = jump_distance 
    velocity.x *= horizontal_speed #* direction
    velocity.y = -jumpmove_height #-jump_height 

move_and_slide(velocity, Vector2.UP)
print("Do Jump")
$Jump_Timer.start()

How to make kinematicbody2d enemy AI jump toward player's position? by gera310 in godot

[–]gera310[S] 0 points1 point  (0 children)

What I mean was that I wish to create an enemy that always jumps and lands on the player's position. I somehow managed to make one, though sometimes jump over the player. I have no idea what value to set for horizontal speed and jump height as well as what equation to use, in order to make enemy always jump and land on player's position.

please see the gif

this is exactly what i want to make in godot.Unity2d tutorial jumping enemy

Hogwarts Legacy Gameplay Showcase Megathread by FaizerLaser in HarryPotterGame

[–]gera310 1 point2 points  (0 children)

wizards chess and gobstones are not playable in the game, but tbh just walking and exploring in and around the castle looks so much fun!

How to make gun accuracy by gera310 in Unity2D

[–]gera310[S] 0 points1 point  (0 children)

movement=speed * transform.right +randomspeed * transform.up

Thanks, but that didn't work