defendo icon indicating copy to clipboard operation
defendo copied to clipboard

Allow dragging new towers into the board

Open Lonami opened this issue 7 years ago • 14 comments

Currently the only way is to click for the tower you want to buy, and once it spawns, drag it. Although both approaches are fine, dragging feels more natural to me (and probably other people). It could show the tower and if you drag it outside the shop box, consider it as purchased. Or perhaps be able to refund if you drag it there? Of course, I came across this while playing on Android :P

Lonami avatar Sep 14 '17 07:09 Lonami

Good idea!

HassanHeydariNasab avatar Sep 14 '17 07:09 HassanHeydariNasab

I think nobody want to use a weapon at level 1 for shooting; especially when you are at high waves.

HassanHeydariNasab avatar Sep 15 '17 10:09 HassanHeydariNasab

Can't the user simply drag the towers to the base to upgrade them? Instead the two-steps of clicking the tower and dragging it to the base?

Lonami avatar Sep 15 '17 10:09 Lonami

This is easier: https://github.com/HassanHeydariNasab/defendo/issues/13 Dragging is an additional step! just tap for buying and your weapon will be upgraded in the base! For example drag a level 2 cannon to the base then tap on the cannon buy button; now you have a level 3 cannon in the base! tap again and you have a level 4 cannon...

HassanHeydariNasab avatar Sep 15 '17 10:09 HassanHeydariNasab

But what if the user is trying to buy a separate turret and it doesn't work because they're actually upgrading the other but don't notice? 🤔

Lonami avatar Sep 15 '17 10:09 Lonami

But what if the user is trying to buy a separate turret and it doesn't work because they're actually upgrading the other but don't notice? :thinking:

If the turret in the base is not the same you bought or your base is empty, new turret will be spawned in another position.

HassanHeydariNasab avatar Sep 15 '17 10:09 HassanHeydariNasab

Hm, I guess then the shop functions to both upgrade and add new ones. Then, simply tapping can upgrade, but dragging still spawn a new one?

Lonami avatar Sep 15 '17 10:09 Lonami

Both scenarios use "tap on button".

HassanHeydariNasab avatar Sep 15 '17 11:09 HassanHeydariNasab

Not quite:

  • Tap:
    • If same turret exists in base, upgrade it by 1 level.
    • If no turret exists in base, or is a different type, spawn new level 1 one randomly.
  • Drag:
    • The user always spawns a new level 1 turret, and drags it wherever he wants to.

Lonami avatar Sep 15 '17 11:09 Lonami

"Both scenarios" I mean Upgrading and Adding. assume you start the game and you want to build a 5 level cannon; you should drag 6 times by your method! dragging is more expensive than tapping :smile:

HassanHeydariNasab avatar Sep 15 '17 13:09 HassanHeydariNasab

assume you start the game and you want to build a 5 level cannon

  1. Drag a tower to the base -> level 1.
  2. Tap tower -> level 2.
  3. Tap tower -> level 3.
  4. Tap tower -> level 4.
  5. Tap tower -> level 5.

I'm saying both can coexist (tapping and dragging). Not it being dragging only.

In your case, it would be:

  1. Tap tower
  2. Drag tower to base
  3. Tap tower -> level 2…
  4. And so on

Lonami avatar Sep 15 '17 13:09 Lonami

Yes, I'm thinking about this mix too...

HassanHeydariNasab avatar Sep 15 '17 13:09 HassanHeydariNasab

Shouldn't be hard. Default behavior is always drag. But maybe, if you drop the tower on the shop item, it behaves like a tap, and acts accordingly. Makes sense?

Lonami avatar Sep 15 '17 13:09 Lonami

Not sure if Godot makes it simple to distinguish between dragging or tapping.

Lonami avatar Sep 15 '17 13:09 Lonami