dojo onclick trubbels

Game development with Board Game Arena Studio
Post Reply
User avatar
AxeCrazy
Posts: 30
Joined: 15 March 2014, 01:07

dojo onclick trubbels

Post by AxeCrazy »

For my latest game confusing lands i use a block square matrix for placing cards Iwould like to use scrollmap also, but that does not seem to work in combination wiht begin_block routines ?)
I added a dojo onclick listener to each square for placing a card on it.
The active card also has arrow to move the card to adjesent squares, also add with a dojo onclickon each arrow after placing the card in the square.
(See attachment for clarification)

But when i click and arrow the first click always is captured by the underlaying sqaure and only the second click is registered in the callback function of the arrow.

Does anybody have a good explaination why this is the case?
Or a solution would even be better i guess :D

Any help is appriciated.
User avatar
AxeCrazy
Posts: 30
Joined: 15 March 2014, 01:07

Re: dojo onclick trubbels

Post by AxeCrazy »

Image
Attachment does not seem to work, so see above
User avatar
AxeCrazy
Posts: 30
Joined: 15 March 2014, 01:07

Re: dojo onclick trubbels

Post by AxeCrazy »

fixed this, so ignore :)
Post Reply

Return to “Developers”