LittleStain's Recent Forum Activity

  • In C2 the Array variable is an Object,. You cant set a global array, nor can you make an array instance variable like in Scripting languages.

    Correct me if I'm wrong..

    Isn't an array set to global on creation?

    Wouldn't adding an array to a container work as using it as an instance variable?

    Maybe you mean something different, that's why I'm asking..

  • you could ofcourse easily create a fully customizable list using the TokenAt expression in combination with the dictionary object..

  • LittleStain i do as you say and i have this same problem again

    round( (cenakoncowa/100)*(100-RABAT) )&"zl"

    There are two places in the event-sheet which have the same event and action, are you changing both?

    I'm not sure why you have the same event twice, only difference is the top event..

    Using an 'or' event or a function-call would solve that..

  • You add "((" and "))" ??

    No, I added round() around the whole expression..

    The expression was

    (cenakoncowa/100)*(100-RABAT)

    so I added the bold part

    round( (cenakoncowa/100)*(100-RABAT) )

    This was done because I want to round everything inside the ( and the )

  • I set text to : round((cenakoncowa/100)*(100-RABAT))&"zł"

    And everything works as expected..

  • Not sure why that would happen (Maybe I'm missing something)

    Did you put round around the whole expression or just the first part?

  • C2 doesn't support making games that run in the background..

    When unfocused the game suspends..

    Using the "on resumed" event you could however update the game to what should have happened..

  • Sorry, but I don't understand the language and as such am not sure what should happen where..

    But I guess setting the text to : round((var3/100)*(100-var4)) should do the trick..

  • You're not stupid, you are learning..

    We all have to learn things before we can do them..

    An event like this would work:

    System for each (object you want to pin)

    (object you want to pin to) pick nearest to x = (object you want to pin).x , y= (object you want to pin).y

    (object you want to pin) pin to (object you want to pin to)

    This is if the object you want to pin to is the nearest instance to the object you want to pin..

  • You were already very close..

    Just added a second boolean "clockwise"

    Lock pick improved (R214)

  • And i told you to not comment on my project. Telling me that my images are too big and that i have too many sprites and shouldn't call them all sprites is commenting.

    I'm sorry for giving unsollicited advice..

    Pinning works like blackhornet explains, actually all events do..

    You have to reference the sprite you intend to do actions on in the event..

    So if you use the pin action, it should be clear which instance of the object you want to pin to..

    This is called picking..

    In your case you could use overlap or pick nearest..

    If there is only one instance of the object to pin to on the layout, automatically the right object will be selected, ofcourse..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Could you post an example?

    My guess is it would be possible to base the water parameters based on the scale of the layer with one simple event/action..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies