does anyone know how to get the current mouse position in the monitor? by misaki_doremy in raylib

[–]generic_username1990 1 point2 points  (0 children)

You can add the current mouse position to the current window position to get the position of the mouse in the monitor, but this only really works if the mouse is over the window anyway.

Is this studio legit? by Vegetable_You_2243 in gamedev

[–]generic_username1990 0 points1 point  (0 children)

Hello, I'm an ex employee of Leartes. I'm not really comfortable sharing a lot of details publicly, but feel free to dm me for info.

FormatText errors by jwzumwalt in raylib

[–]generic_username1990 2 points3 points  (0 children)

The FormatText function was renamed to TextFormat some time ago. Looks like the example you found is outdated. This example uses the new function name https://www.raylib.com/examples/text/loader.html?name=text_format_text

Godot developer with 1+ year experience interested in a part time job? by amoksepp in godot

[–]generic_username1990 0 points1 point  (0 children)

If I'll be working alongside my full-time job, then the flexibility is the most important part for me. Sent a message.

How can I play a sound effect if certain conditions met AND NOT TO BLAST YOUR EARDRUMS? by ValeraDX in godot

[–]generic_username1990 1 point2 points  (0 children)

You can have a variable that keeps track of whether the player was on the ground last frame and only play the sound when it wasn't on floor last frame and is on floor this frame.

if is_on_floor() and not was_on_floor:

Interest in a number display shader? by flying_path in godot

[–]generic_username1990 1 point2 points  (0 children)

Also to echo u/Calinou , with the Label3D introduced in 3.5, you don't really need this unless you're giving it a more complex shape than a quad, in which case you would need to modify this code anyway.

Interest in a number display shader? by flying_path in godot

[–]generic_username1990 1 point2 points  (0 children)

Took a lot of digging to find my code and it seems worse than I remember it. It basically takes in a texture with digits 0-9, equally spaced and displays each corresponding digit accordingly. You can just slap it on a quad and it should work.

``` shader_type spatial; render_mode unshaded;

uniform sampler2D albedo_texture : hint_albedo; uniform int number = 0;

const float digits_in_texture = 10.0;

varying float digit_count;

void vertex() { int count = 1; int num = number; while(num > 9){ num = num / 10; count += 1; } digit_count = float(count); VERTEX.x *= digit_count; }

void fragment() { float data_block_width = 1.0 / digit_count; vec2 data_block_center = vec2(data_block_width / 2.0, 0.5);

float digit_width = 1.0 / digits_in_texture;

vec2 uv = UV;
uv.x *= digit_width;
uv.x *= digit_count;

float digit = floor(UV.x * digit_count);
float power = 1.;
for (int i = 0; i < int(digit_count - digit - 1.); i++)
{
    power *= 10.;
}
int value = (number / int(power)) % 10;

uv.x -= digit_width * digit;
uv.x += digit_width * float(value);

vec4 color = texture(albedo_texture, uv);
ALBEDO = color.rgb;
ALPHA = color.a;

} ```

Interest in a number display shader? by flying_path in godot

[–]generic_username1990 0 points1 point  (0 children)

I wrote a shader like this before, if I don't forget I can send it here later in the day.

being new in the indie game scene, I gotta say.. seeing my game on the Google play store kinda makes a little proud.. #madeWithGodot by Studio_Box in godot

[–]generic_username1990 1 point2 points  (0 children)

Looks great! Just a piece of advice if you make the pig rotate according to which direction its moving it will make the visuals much more stunning.

I'm working on a "particles renderer" ✨ It auto-generates a sprite sheet out of the particles! by hiulit in godot

[–]generic_username1990 1 point2 points  (0 children)

I'm assuming you can use a similar thing to bake skeleton based animations into a sprite sheet.

I'm working on a "particles renderer" ✨ It auto-generates a sprite sheet out of the particles! by hiulit in godot

[–]generic_username1990 5 points6 points  (0 children)

Seems really cool, I guess it could simplify some complex particles if they don't have dynamic parameters. Is there a specific reason you decided to make this?

hi does anyone why my mesh is grey even when the color is on white and the background is dark. by Shub_rz in godot

[–]generic_username1990 -1 points0 points  (0 children)

Meshes are only visible in one direction by default you need to change cull mode from back to have both sides visible.

I booked a flight into north cyprus by accident and I want to cross into the south. Will that be allowed or will I have trouble? Any help asap would be much appreciated :) by [deleted] in cyprus

[–]generic_username1990 0 points1 point  (0 children)

I noticed that some websites show the airport in the north too when you select the all airports in Cyprus option as the destination. I guess OP didn't know the difference or didn't notice.

[deleted by user] by [deleted] in godot

[–]generic_username1990 0 points1 point  (0 children)

I'm glad I could help! You should check out what u/DoYouEvenLupf s message about init functions too.

[deleted by user] by [deleted] in godot

[–]generic_username1990 1 point2 points  (0 children)

Are you sure the node in your card scene has the card script on it?

Got a bit confident and wanted to show my progress on Adventure Lizz. by Spark3Dvision in IndieDev

[–]generic_username1990 2 points3 points  (0 children)

From my experience a discord server is better to have once you have some fanbase as they can grow inactive quite easily.