dop2000's Forum Posts

    If, as you say, people HAPPILY stay on the current version forever... what the heck are we paying for? If the updates are really this worthless to you why do you defend paying for them? Sorry, but I really do not understand the point you are trying to make.

    What you are suggesting is basically returning to the way C2 was - one-off payment and lifetime access to the software. My point is that Scirra would never do this.

    - Make it possible to have access to the versions you paid for even >after a sub ran out. ( Give ownership over the things people paid >for )

    Yeah, this is completely unrealistic. Many people will happily stay on the current version forever. Or they can just buy a subscription for 1 month every year and get access to all new features!

  • 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..

  • 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:

  • ilanfl You need to use dt for opacity too, otherwise the object will disappear/appear almost instantly, especially at high framerates.

    If Player is moving: 
    .. Set TimeElapsed to 0
    .. Obj set opacity to self.opacity+dt*100
    
    Else 
    .. Add dt to TimeElapsed 
    
    If TimeElapsed>3 
    .. Obj set opacity to self.opacity-dt*50
    
    
  • I think citron2010 meant to ask if you are making a game or just an image? An image would be easier to create in any graphic editor.

    In Construct you can do this, if you need a clock with 60 segments:

    Repeat 60 times:
     Create Sprite
     Rotate Sprite (loopindex*6) degrees
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That may be a coordinate from a different layer. Try using Touch.X(layer) expression.

  • random(100) returns a random number from 0 to 100.

    random(100)<50 condition would mean 50% chance.

    random(100)<20 condition is 20% chance.

    random(100)<1 condition is 1% chance.

    By changing the number you can change the odds.