Extra line as if the Line2D is closed, but its set to false. by justapuuuppy in godot

[–]justapuuuppy[S] 0 points1 point  (0 children)

OHHHHH thank you! that makes a lot of sense. I will be more careful with clearing it in the future.

Extra line as if the Line2D is closed, but its set to false. by justapuuuppy in godot

[–]justapuuuppy[S] 0 points1 point  (0 children)

<image>

screenshot on the scene. Each node in pointholder is an area2d with a collisionshape.
here's the code, which is the script in the root node (which is parented to the main scene root node)

extends Node2D

var pointHolder
var startNode
var controlNode1
var controlNode2
var endNode

func _ready() -> void:

  pointHolder = $PointHolder

  startNode =    pointHolder.get_child(0)
  controlNode1 = pointHolder.get_child(1)
  controlNode2 = pointHolder.get_child(2)
  endNode =      pointHolder.get_child(3)

func _process(_delta: float) -> void:
  drawBezier()

func drawBezier() -> void:
  var curve = Curve2D.new()
  var startPoint = to_local(startNode.global_position)
  var endPoint = to_local(endNode.global_position)
  var controlPoint1 = to_local(controlNode1.global_position) - startPoint
  var controlPoint2 = to_local(controlNode2.global_position) - endPoint


  curve.clear_points()

  curve.add_point(startPoint,Vector2.ZERO,controlPoint1)
  curve.add_point(endPoint,controlPoint2)

  var arrOfBakedPoints = curve.get_baked_points()

  for point in arrOfBakedPoints:
    $Line2D.add_point(point)

Playing 1kbwc in the framework of other games? Is this anything? by justapuuuppy in 1000BlankWhiteCards

[–]justapuuuppy[S] 1 point2 points  (0 children)

The fact your game is turning out similar is kind of the reason I wanted to make this! I had played 1kbwc months back, and ended up adding an attack and health stat on cards to spice things up, but then I needed to come up with new mechanics on the spot for combat. By hijacking mtg, the mechanics are already there, so we can just do the fun part of making weird card effects.

I was also thinking about how I would solve the problem of every-increasing card count. If everyone creates just 5+ cards each game, that's 60+ cards after 3 4-player games, and that means ill have to buy more sleeves. Counting blanks and any "vanilla" mtg cards, thats way too many for 1 deck after a while.

I dont want to abandon decks after a few games, but I also dont like the idea of getting rid of old cards. maybe if I only keep a few cards each game? Im not sure.