Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dragging new towers into the board #11

Open
Lonami opened this issue Sep 14, 2017 · 14 comments
Open

Allow dragging new towers into the board #11

Lonami opened this issue Sep 14, 2017 · 14 comments

Comments

@Lonami
Copy link

Lonami commented Sep 14, 2017

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

@HassanHeydariNasab
Copy link
Owner

Good idea!

@HassanHeydariNasab
Copy link
Owner

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

@Lonami
Copy link
Author

Lonami commented Sep 15, 2017

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?

@HassanHeydariNasab
Copy link
Owner

HassanHeydariNasab commented Sep 15, 2017

This is easier: #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...

@Lonami
Copy link
Author

Lonami commented Sep 15, 2017

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? 🤔

@HassanHeydariNasab
Copy link
Owner

HassanHeydariNasab commented Sep 15, 2017

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? 🤔

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.

@Lonami
Copy link
Author

Lonami commented Sep 15, 2017

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?

@HassanHeydariNasab
Copy link
Owner

Both scenarios use "tap on button".

@Lonami
Copy link
Author

Lonami commented Sep 15, 2017

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.

@HassanHeydariNasab
Copy link
Owner

"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 😄

@Lonami
Copy link
Author

Lonami commented Sep 15, 2017

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

@HassanHeydariNasab
Copy link
Owner

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

@Lonami
Copy link
Author

Lonami commented Sep 15, 2017

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
Copy link
Author

Lonami commented Sep 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants