Telyko's Recent Forum Activity

  • You could add another Variable called BallSpeed on ball movement start

    Set BallSpeed to 1 if speed between 1 and 30, set BallSpeed to 2 if speed between 30 and 60, etc..

    and change the Platform Gravity each time each bounce to : BallSpeed x 1 for 1st bounce, Set Platform Gravity to : BallSpeed X 2 for 2nd bounce, etc...

  • I think the javascript code has been minified or something, which makes it look complicated.

    I'm not into code that much (which is why I love Construct 2 so much after all ^^ ). Yes I think it's just flat blocks but pushing the arrows buttons creates events that resize the blocks. If you look very closely at blocks with ladders on top of them you'd expect real 3D to display the sides of those blocks while they are just 2D sprites which change sizes. As I said this is very well done and seems complex but by trying to reproduce the concept in a more simple way with fewer blocks for a start I'm sure it can be done. After that it's just adding more variables and elements but sticking to the same logic.I'd say something like:

    A full row of blocks contains 10 blocks in line with each a letter assigned: A B C D E F G H I J

    if rotated left: then A size= -30 B size = -20 etc.. etc.. Just throwing ideas here.

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

  • Try Construct 3

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

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

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

Telyko's avatar

Telyko

Member since 30 Mar, 2013

Twitter
Telyko has 1 followers

Connect with Telyko

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies