Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

LilacLemmy

8
Posts
1
Topics
1
Followers
1
Following
A member registered 11 days ago

Recent community posts

Definitely am only working with one enemy for now (which is the squirrel). After work tonight I'm gonna focus solely on art and get that done so I'll have the next couple of days to hopefully figure out the coding. 

Thanks so much for the encouragement. It's really appreciated! 馃挅

I'm not particularly sure? Boolean is a new term for me so I'm not familar. 馃槄

But here's all my code for the squirrel if that helps? (Realizing now I probably should've posted this last night, sorry)

extends CharacterBody2D
const NAME = "Squirrel"
@onready var animation_player: AnimationPlayer = $AnimationPlayer
const SPEED = 80
var motion = Vector2()
var UP = Vector2(0,-1)
var direction= -1
var dir = 1
var gravity = 20
var knockback_dir
var knockback
@onready var ray_cast_left: RayCast2D = $RayCastLeft
@onready var ray_cast_right: RayCast2D = $RayCastRight
func _process(delta):
if is_on_floor():
motion.x += SPEED * direction
if ray_cast_right.is_colliding():
direction = -1
if ray_cast_left.is_colliding():
direction = 1
position.x += direction * SPEED * delta
animation_player.play("walk")
func _physics_process(delta):
if knockback == true:
motion.y = -100
motion.x = 100 * knockback_dir
knockback = false
motion = move_and_slide()
func _on_spinner_knockback() -> void:
var player_dir = get_parent().get_node("Spinner").dir
knockback_dir = player_dir
dir = knockback_dir * -1
knockback = true

And here's my spinner which does the knockback (or is supposed to, haha)

extends CharacterBody2D
@export var animation_player: AnimationPlayer
@onready var spin_attack: Area2D = $"spin attack"
@onready var animation_player_2: AnimationPlayer = $AnimationPlayer2
signal knockback
var knockback_dir = Vector2()
var knockback_wait = 50
var dir = 1
func _input(event):
if Input.is_action_just_pressed("spin attack"):
animation_player_2.play("attack")
for body in $"spin attack".get_overlapping_bodies():
if knockback_wait <= 0 and body.get("NAME") == "Squirrel":
emit_signal("knockback")
knockback_wait = 50
knockback_wait -= 1
if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
animation_player.play("Spin")

Ah... I'm getting a little... defeated haha...

For the past day I've been trying to get the core mechanic of the game to work and I'm afraid I'm just not knowledgeable enough on Godot's terminology quite yet to make sense of things. I've been doing my best to research the issues I run into and have been patching together tutorials to get things "working" so far, but with each action I try to implement I always run into some kind of error. I know it's to be expected as a total newbie but I'm afraid I'm gonna run out of time to make the jam. (Especially considering I've got work for the rest of the week.)

Right now I'm trying to set up a "repelling" effect through a knockback mechanic and I thought I had it all figured out but when I try to run the game it inevitably crashes with this error. 

"Invalid assignment of property or key 'y' with value of type 'int' on a base object of type 'bool'."

(Also I know this is bare bone when it comes to the assets. I just wanted to get the spin mechanic to work first before adding in art because art is my stronger suit and I figured I could get it done quicker. 馃槶)

How should I proceed guys? Is this something I can figure out within the time frame, or would I be better off trying to collab at this point? Or should I start writing a concession speech? Lol (Jk)

Thoughts appreciated. Thanks for reading! 馃挅

Thank you!! Gonna try my best! 馃挅

Yeah, agreed! All 3 critters will be a bonus, but I'll focus on one for now. 馃 Thanks!

Thank you!! I'm gonna try! 鈽猴笍

This is great to hear! 馃槃

And definitely! While I do have some skills in art, animation is a whole nother thing! Lol 

Thank you for your thoughts! 馃挅

Hi ya'll! 馃憢馃徑

I'm very new to game dev and have been working in Godot.  I have no prior coding experience but I'm doing my best to learn and I thought it might be good experience to join this game jam. 

I think my game idea is simple but I'm curious to know if this might be out of my league?

I want to make a game where you're trying to grow a sunflower from a sprout but you have to ward off creatures that would potentially eat it. You do so by clicking on pinwheels (with your mouse) to make them spin, detering the creatures. 

Here's a rough concept "drawing": 

I was thinking of having birds, squirrels and raccoons be the "enemies" of the game and they would come in off screen trying to get to the planter. Depending on which enemy, you have to click certain pinwheels at potentially different velocities to fend them off. The game would be on a timer, which I was thinking would be a day cycle and once the day was complete, the sprout would bloom into a sunflower and you would win. 

Sorry if this post it too long. 馃槄 But if you don't mind giving your opinion on whether this would be too much for a beginner or not, it would be much appreciated!  Thank you for reading! 馃挅馃挅