create account

RE: Tutorial (Godot Engine v3 - GDScript) - Create lots of Sprites! by sp33dy

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @netanel-m/re-sp33dy-tutorial-godot-engine-v3-gdscript-create-lots-of-sprites-20180331t152437908z

· @sp33dy ·
Hi, just about to jump on a plane, so it's going to be a week. I'm not quite sure what your problem is exactly. When you duplicate a sprite, it rememers ALL the details of the last; including position. However, you also have to remember that a top level sprite at (100, 100) will be that on screen (or global 100x100 as it were). If you have a child sprite at (100, 100), it will actually be globally (200, 200) because it is transformed from the first; unless you set its global_position.

The centipede movement requires even more trickery (if you look at the Verlet examples as a starter). I've been working on, but failed to have ready, the 'waves' of invader attack. Once ready, this should help to explain how it all works. But you'll have to wait a few weeks.
properties (22)
authorsp33dy
permlinkre-netanel-m-re-sp33dy-tutorial-godot-engine-v3-gdscript-create-lots-of-sprites-20180401t161638044z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-04-01 16:16:39
last_update2018-04-01 16:16:39
depth2
children0
last_payout2018-04-08 16:16:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length766
author_reputation3,475,579,509,208
root_title"Tutorial (Godot Engine v3 - GDScript) - Create lots of Sprites!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,802,144
net_rshares0