Telyko's Forum Posts

  • You're welcome! I hope you manage to do what you want.

  • I think it would be much easier to have 9 buttons with 9 different names and 9 variables.

    But that's just my opinion.

  • Your .capx seems to use rather complex events for doing rather simple things.

    I suggest you open examples you can find in Construct 2 templates and give a look at how the virtual controls work.

  • I would suggest you give a look at this if you haven't already:

    https://www.scirra.com/tutorials/298/performance-tips-for-mobile-games

    https://www.scirra.com/manual/134/performance-tips

    It contains almost everything you can do to improve your game's performances.

  • Oh I see.

    Well if you just have 9 keys then you could create nine Variables (VarKey1 VarKey2,etc..) , one for each key, and when you push "Enter"

    Set RESULT text variable = VarKey1&VarKey2&VarKey3&VarKey4&VarKey5etc...

    Use the above method to set the numbers, just remove the sub events

  • You could set a "Pin" behavior to the objects you add on your wheel (I don't know what you want do to but let's call them decorations) and on their creation:

    Set Decoration1 position to Wheel.X and Wheel.Y

    Pin Decoration1 Position & Angle to Wheel.

  • What about:

    You create a Global Number Variable called JumpVariable

    then

    On platform jump:

    set JumpVariable = 0

    On platform land:

    - if JumpVariable = 0 set PlatformGravity to 10 for exemple & simulate jump & add + 1 to JumpVariable

    - if JumpVariable = 1 set PlatformGravity to 30 & simulate jump & add + 1 to JumpVariable

    - if JumpVariable = 2 set PlatformGravity to 50 & simulate jump & add + 1 to JumpVariable

    - if JumpVariable = 3 set PlatformGravity to Normal gravity & set JumpVariable to 0

    That way you simulate a bounce and you are able to define how many times it will bounce and can even set random values for gravity each time your object jumps.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What do you mean by "group it with another sprite so they become a global sprite" ? What do you wish to achieve exactly?

  • Could you describe how you "embedded" that video in Construct 2 please?

  • I'm not sure I have understood exactly what you are doing with those multiple virtual 3X3(?) keyboards but I think I get the general idea.

    You want to push a key on the keyboard, pushing it once moves that value from 0 to 1, pushing it again moves it from 1 to 2, and again, 0 to 1.

    By hitting enter you want to store that value somewhere after all the other values of the previous pushed buttons?

    I'd do hit like this:

    On layout startup:

    Set Global Text Variable RESULT = "" (empty)

    on button "A" pressed:

    if Global Number Variable A = 0 set it to 1

    Sub event: Append Variable RESULT with: ""&VariableA (1)

    if Global Number Variable A = 1 set it to 2

    Sub event: Append Variable RESULT with: ""&VariableA (2)

    if Global Number Variable A = 2 set it to 0

    Sub event: Append Variable RESULT with: ""&VariableA (3)

    on button "B" pressed:

    etc..

  • I think it can be done yes. It would however require complex events and actions with lots of variables.

    You could put transparent sprites on both side of the tower with a little gradient shadow, and a variable number going from 0 to 360 would constantly check which square to display or not. Turning the tower changes the blocks size and shade which give it a very nice 3D effect.

    I suspect a static layer with two vertical gradient shadows has been set above every rotating elements.

    It's cleverly done.

  • I don't think there is a need for a specific .capx.

    Just set a custom mouse pointer with a sprite.

    Then in Node-Webkit or Chrome: Hold down both mouse buttons, then quickly release both Left button first and Right button after.

    The mouse pointer changes back to the normal one.

    Ashley Could you tell if this is an actual bug and if it can be fixed? Like with a temporary solution while waiting for the official fix?

  • A solution would be to save your project under a different name then remove everything you don't wish to keep and then Copy/Paste the events, objects, sprites, etc... in your newest project.

  • I suggest you open the different CAPX exemple files and try to figure out how everything works. Games like Shank 2 have complex mechanisms behind them and one should start by learning the basics then go for more and more complicated. I would advise that you start by making an easier kind of game.

    Also, please try to pay attention to the way you write in English. It's hard to understand what you want.

  • Yes, this doesn't work because it's based on the data generated by the project. It doesn't go look for current system time.

    You're going to need to use the Node-Webkit object to write a text file containing system time.

    And on game startup load these files and set variables according to what it contains.