dop2000's Forum Posts

  • That's how Construct works - you have to wait until the end of the tick to pick newly created instances. Exceptions are: On Created trigger, Pick Last Created, Pick by UID

  • The file you shared has no download permission.

  • Looks like "On collision" is triggered separately for each instance.

    You can use "Is overlapping" instead, and "Pick nearest" as a second condition.

    Or try removing "for each" from the code on your screenshot.

  • *example by me. Youtube tutorial by Bart Alluyn :)

  • You can add a sub-event immediately after "Create by name" and use "System pick last created family" condition. There you will be able to change the properties of the created instance.

    • Post link icon

    I agree with your other suggestions. But this particular one is unrealistic and Scirra would never do it, because it will significantly reduce their profits. I'm not advocating for them, just stating the obvious.

  • mikeadamski26 Dictionaries are used when you need to store a lot of data, say, an entire dialogue or inventory system in the game. It may also be useful when you need to access the data dynamically, for example, to get a specific dialogue line for NPC_Name&"_greeting", where NPC_Name is a variable.

    If you just need to store two strings of text, a dictionary would be an overkill. You can use two global variables (GoodMessage and ExcellentMessage). Or local variables inside the event where you display the text. Or even hard-code the text in the "Set text" action, which is not a good programming practice, but definitely the easiest way to do this.

    • Post link icon

    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.

    • Post link icon

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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...