dop2000's Recent Forum Activity

  • You do not have permission to view this post

  • You do not have permission to view this post

  • So you did mean instance variables! Is there a reason why you store those texts in instance variables on the dictionary object, and not in the dictionary itself?

    If you need to access instance variable value, just use Dictionary.Good or Dictionary.Excellent

  • This is an English forum. Here are some Russian C3 resources:

    prodevs.ru/forum

    vk.com/prodevs

    In layout editor right-click an object and select "Z Order".

    In events you can use actions like "Move to top/bottom", "Move to object". Or System action "Sort z order".

  • Thanks for the replies! I just realized that Touch plugin with "Use mouse input" enabled treats all clicks as touches, not just left clicks. So simply replacing mouse events with similar touch events won't be possible. I'll have to duplicate some events, create OR-blocks with triggers, perhaps add a bunch of helper functions like "IsTouchOrMouseLeftClick". Oh, well..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a dictionary with two instance variables: Excellent and Awful.

    Do you mean with two keys?

    You can use "System is between values" condition:

    set r to int(random(101)) <- notice it's 101, not 100
    
    Is r between 50 and 79 : Set text to dictionary.get("Awful")
    Is r between 80 and 100 : Set text to dictionary.get("Excellent")
    
    
    
  • Press F12, open browser console and you'll see the error message. If it's related to CORS, search the forum, there are lots of topics about it.

  • For some unknown reason Construct doesn't have any expressions which return boolean value, or at least 0/1. You are forced to use events...

  • If you know the dummy was overlapping you know it was mouse.

    What if it's a touch and the mouse cursor just happened to be in the same spot?

  • PlatformInfo isn't really a solution. I don't need to detect the platform. I need to know when "On Touch" is triggered - whether it was really a touch event or a mouse click.

    That official example is using Touch with mouse input disabled.

    Just use is overlapping with a dummy object.

    Not sure I understand how it would help. Say, when playing on Steam Deck, you can use the touchpad (mouse) or touch the screen. Or even connect an external mouse.

  • I'm trying to make a game that would work on PC with mouse and on mobile with touch, so I'm using both plugins. Touch plugin has "Use mouse input=YES", because I want it to handle most touch and left click events in the project.

    But I still need to be able to distinguish between left mouse click and touch - to update the UI, hints etc. What's the best way to do it?

    At the moment I have this:

    But I'm worried it may not work on some devices.

    Tagged:

  • You do not have permission to view this post

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies