pcprice76's Recent Forum Activity

  • pcprice76

    I was dealing with a similar mouse issue last night - I was doing something when the left mouse button was clicked on an object. But I was also doing something while the left button was down in another fuction. Out of curiosity, I put a counter in that button down function, and it was getting called on average 9 times along with the first routine. And that was just a normal short mouse click.

    Things generally happen a lot quicker than you think. I bet C2 thinks your "touch" event happens for quite a few ticks. On the first tick of the touch it creates the m.Glass, then the next tick thinks you are touching the m.Glass. so starts running that code. The 0.01 second delay may not be long enough.

    Another issue I ran into months ago is that a tap on objects that overlap registers as a tap on all of them. So, you need to make a way to disable the first sprite while the m.Glass sprite is visible. Then re-enable it when you destroy the m.Glass one. Making the first sprite invisible will not work - the tap will still be processed for it. you have to disable the events where it processes the tap, or move the sprite off screen, or add conditions that say not to process the tap if the m.Glass sprite is overlapping or visible.

    YES! You got it... my problem is the sum of your two ones.

    I realized that more then one tap was triggered and i think that with WAIT was solved, because after that the M. Glass was showing up normally. The second issue is that clicking on it,it triggered both overlapping sprites, so, at the same time:

    1) Function description, that describes object and destroy sprite m. Glass

    2) Function object select that triggers the tap on underneath object and creates again the M. Glass on it.

    So the M. Glass remain always on top of the object, never being destroyed (or, better, being destroyed and recreated at the same time)

    In this case WAIT is useless because the problem is that TAP takes both objects and triggers 2 functions.

    I could make the M. Glass appear shifted to the side of touch.X but would prefer to find a way to solve this porblem, 'cause i'm sure that can be useful in future..

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi, i have a strange issue. I have a sprite, when you tap on it a new sprite with a magnifying glass should appear on it, clicking on it a text box is created with description and magnifyng glass sprite is destroied. problem is that when you tap, the magnifying glass sprite won't appear because the same tap is triggered for both action, so only text will appear on top...

    I tried to solve adding a 0,01 wait, but then when i click on m. glass, the TAP will be triggered both for that sprite and the one underneath, creating again the m. Glass sprite on it... do not know if i've explained it well (sorry for my bad english...)

  • You do not have permission to view this post

  • thanks!

  • Hi, something wrong with the links... they point at same file, that is the plugin...

  • ok found it

  • Hi, i was curious about it, but can't find it...

  • pcprice76 just out of curiosity, what did you end up doing to remedy this?

    Sorry if never rplied to you! I just see now your question!

    I had a baby and completely abandoned every project till now...

  • Hi, do you now if the tutorial linked is compatible with mobile exports? Reading the comments seems that XML parsing is not, but were old posts...

  • Sorry for delay in my reply... really thanks for your help

    I created an instance variable, same for both games. It's working great!

  • Sorry for the probably silly question, but i'm trying the "multiplayer part" of my game and have a doubt

    When i sync objects, i don't sync also UID right? Because i have tiles and cards that players select and i wonder if i have to put an instance variable identifying them (like 1, 2, 3 and so on for tiles and cards) or can be simply done with their UID.

    Thanks

  • Let me know

    I'm interested...

pcprice76's avatar

pcprice76

Member since 6 Jul, 2014

None one is following pcprice76 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies