Skip to content

u/dosjanus

In this archive from Sep 2018 to May 2019

5
posts
15
comments
0
media
29
score

Top posts

A* pathfinding keeps spitting out errors

My A works, but error log gets filled with errors 0:00:03:0382 - Condition ' p_elem->root ' is true. Type:Error Description: Time: 0:00:03:0382 C Error: Condition ' p_elem->root ' is true. C Source: core/self_list.h:46 C Function: add I couldn't find much with google (at least what i could understan...

3 points4 comments
Open on Reddit

Accessing function from subclass possible?

Here's a (pseudo)example of my code: extends Node2D var ai = ai_confused.new() func move(): position = random class ai_confused: func take_turn(): move() Then called from somewhere else with ai.take_turn() would give me error: Invalid call. Nonexistent function 'move' in base 'Reference ()'. Is ther...

1 points5 comments
Open on Reddit

How to detet mouse clicks in ui element?

I'm making inventory and character ui for my game and i have slots ( TextureRect) for equipped items. Slot texture changes properly when i equip item but i have problem detecting clicks on specific TextureRect. I've tried gui_input signal but nothing gets detected, not even mouse motion. Is this may...

0 points4 comments
Open on Reddit

Top comments

i have ryzen 5 2600 and having no problems because of it. i've had freezes but it's always been because nvidia gpu and nouveau drivers and fixed by installing proprietary drivers.

2 points

if you have problem remembering correct parameters for pacman you can create some aliases in your ~/.bashrc or whatever shell you use

i.e.

alias aptsearch="pacman -Ss"  
alias aptinstall="pacman -S"  

or

alias pkgpurge="pacman -Rsn"
alias pkgremove="pacman -R"

etc.

Or whatever, dunno if that's why you dont like pacman,just an idea.

or you could just learn to ~~use~~like pacman :|

e. dunno if aliases with spaces are possible

2 points

Found out that i could actually do the same with much simpler solution with TextureRects signal gui_input(). I.e:

func _on_TextureRect_gui_input(ev):  
    if ev is InputEventMouseButton and ev.doubleclick:
        do_thing()

Works perfectly with less code.

2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.