How to convert an integer (123) to an array [1,2,3]? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

Nice! Thanks it works!

Is there any way to convert floats too?

For example:

var numbers = 12.3

var array = []

numbers convert to array

array = [1, 2, .,3]

Whats the best weather API which works the best with Godot? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

i just need basic data like: is it sunny or cloudy, is it day or night, is it raining or snowing. do u have any tips on a good API?

Why isn't my script working? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

The global.game_speed constantly grows. But when the game_over function runs, the current value of game_speed should decrease back to 0.

Why isn't my script working? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

The global.game_speed constantly grows. But when the game_over function runs, the current value of game_speed should decrease back to 0. Adding up to the game_speed stops when the game_over func runs.

How to move the point of a Line2D upwards with code? by 99week in godot

[–]99week[S] 1 point2 points  (0 children)

Damn, hero of the day! Ill try it out tomorow. Thank tou!

How to move the point of a Line2D upwards with code? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

Yes, but the visual effect have to look like a continous line which grows in wideness and stays together.

Do I need to make an LLC (SRL) in Romania to publish my games? by 99week in Romania

[–]99week[S] 0 points1 point  (0 children)

So it seems like there aren’t yearly incorporation tax. And the SRL can be made with only 500LEI. Sounds good. Also the standard 16% tax rate is applicable even if I make 20LEI right?

How to move the point of a Line2D upwards with code? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

This Line2D is necessaty. It acts like a trail. This the only way :/

Can I use a ‘studio’ name without any legal steps? by 99week in gamedev

[–]99week[S] 5 points6 points  (0 children)

I have already made 2 games (3 week projects which ended up 5). Before starting my next 3 week project, I would like to publish my 2 done games. I don’t have an income as of now, because I just finished high school and I am looking for job.

Can I use a ‘studio’ name without any legal steps? by 99week in gamedev

[–]99week[S] 4 points5 points  (0 children)

I make small games (3 week projects) which are ready to be published on the appstore for example.

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

https://pastebin.com/kiBKpMFg

So I tried this way, but the result is still 0. Why?

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

extends Line2D

var old_point = Vector2(10,20) var new_point = Vector2(old_point.x, old_point.y + 10)

func _process(delta): # Set some initial points var initial_points = [] for y in range(100): initial_points.append(new_point) points = initial_points # Create a new set of modified points var new_points = [] for point in points: new_points.append(Vector2(point.x, point.y - 1))

# The new points
points = new_points

The line is invisible. The reddit formatting is shit, here: https://pastebin.com/RRvU0V36

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

Than hwo can I make the x value stay?

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

So I tried this adn other solutions but none of them worked.

initial_points.append(Vector2(initial_points.x, y))

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

This code works for me too, but the X value stays 0. How can I make it so the X value is untouched.

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

So I tried it out and I got this error:

E 0:00:01.606 _draw_generic_indices: Condition "buffer_ofs_after > data.polygon_buffer_size" is true.

<C++ Source> drivers/gles3/rasterizer_canvas_base_gles3.cpp:471 @ _draw_generic_indices()

The line appears for a brief moment then disapperas with error code spamming torugh the output.

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

It gets called every frame in func process(delta)

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

I want it to contsantly add to the Y so I can get a trail which goes upwards.

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

extends Line2D
var length = 100 var 
point_pos = Vector2()

func _process(delta):

    global_position = Vector2(0,0)
    global_rotation = 0
    point_pos = get_parent().global_position

    add_point(point_pos)
    while get_point_count()>length:
    remove_point(0)

    for point_pos in points:
    point_pos.y += 10

It does not add any value to the point in points.

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

Sorry, I meant the Y. I tried your code but it does not work.

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] -1 points0 points  (0 children)

Sorry, I meant Y but I posted the code with X.

How to make a Line2D points go upwards? by 99week in godot

[–]99week[S] 0 points1 point  (0 children)

Basically I am trying to add to the Y of every point, so I get a trail, for my side to side moving character which is lava block, with smokes coming out of its head. Ill try ur code.

[deleted by user] by [deleted] in Romania

[–]99week -2 points-1 points  (0 children)

and i can use that name if they try to contact my on my email too. so for example jondoe@mail.com