I found two bugs in the Getting Started/world section.
-
->moving-the-pillars
system/pillar.modifierThe automatically generated files do not include pre-importedTransformandFrame.There is no indication in the following code for the reader.
tick(delta: Num) { each {|entity: Entity, pillar: Data| var x_now = Transform.get_pos_x(entity) - pillar.speed * delta Transform.set_pos_x(entity, x_now) if(x_now < -256) { Frame.end { Entity.destroy(entity) } } } //each } //tick -
->polishing
The parameter changed fromdisttooverlap_distwithout a highlight reminder, causing a conflict with the redefinition of thedistvariable in the following code.Arcade.add_collision_callback(player) {|entity_a, entity_b, state, normal, overlap_dist| if(state != CollisionEvent.begin) return var dot = Math.dot2D(normal, [0,1,0]) var scale = Transform.get_scale_world(entity_b) var height = Arcade.get_height(entity_b) * scale.y var top = Transform.get_pos_y_world(entity_b) + (height * 0.5) var dist = (top - (Transform.get_pos_y_world(player) - 32)) if(dot.abs < 0.8 && dist > 32) { World.set_rate(world, 0) } if(Tags.has_tag(entity_b, "flower")) { Anim.play(entity_b, "anim/bounce") } } //collision callback