defendo
defendo copied to clipboard
Allow dragging new towers into the board
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
Good idea!
I think nobody want to use a weapon at level 1 for shooting; especially when you are at high waves.
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?
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...
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? 🤔
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.
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?
Both scenarios use "tap on button".
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.
"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:
assume you start the game and you want to build a 5 level cannon
- Drag a tower to the base -> level 1.
- Tap tower -> level 2.
- Tap tower -> level 3.
- Tap tower -> level 4.
- Tap tower -> level 5.
I'm saying both can coexist (tapping and dragging). Not it being dragging only.
In your case, it would be:
- Tap tower
- Drag tower to base
- Tap tower -> level 2…
- And so on
Yes, I'm thinking about this mix too...
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?
Not sure if Godot makes it simple to distinguish between dragging or tapping.