ramones's Forum Posts

  • Is your sprite facing towards the right in the sprite editor?

  • I think it's just a matter of adding points for each criterion the password meets. Then you can set the meter width to the ratio of total points / max points. You get 20 points out of a possible 100 - set the meter width to MAX_WIDTH * 20/100.

    This site is good actually. It shows the formulas they use for scoring the password.

    Basic example: [attachment=0:1gjfev49][/attachment:1gjfev49]

  • Regular expressions!

    Have a look at the system expression:

    RegexMatchCount(String, Regex, Flags) - Return number of regex matches in a string.[/code:pp7zkf1a]
    String is your password. Regex is a regular expression pattern that matches whatever characters you want to look for. And Flags will be "g" for global so it checks for ALL matches and not just the first.  If you're unfamiliar with regular expressions then now is the time to go learn the basics ->.
    
    Some examples:
    \d - matches a digit
    [a-z] - matches any lowercase letter
    [A-Z] - matches any uppercase letter
    [^a-z] - matches anything that is NOT a lowercase letter
    [^a-zA-Z\d] - matches anything that is NOT a lowercase letter, uppercase letter or digit (ie. symbols + spaces)
    
    so RegexMatchCount(password, "\d", "g") will return the number of digits in password.
  • After you mirror B then mirror A, set it's position to the imagepoint and pin it again.

  • You know 'wait 1 second' won't delay the loop. It just queues the 'set text' action to run after 1 second.

    If you have 17 nodes it will loop 17 times and then after 1 second it will run the 'set text' action 17 times.

  • You need to use the 'Button: On clicked' trigger with buttons. Not the Mouse click trigger.

    Also when you have something like this:

    [quote:1lpgw5rp]

    The first condition will pick the button you clicked. In the sub-event you have only that button picked, so the 'pick by UID' will only pick that same button if the UIDs match, otherwise it can't pick anything. And again in the next sub-event, there can only be one button picked at this point so no need for a loop.

    If you have something picked already and you want to pick another instance in a sub-event then you need a 'System: Pick all' condition first.

  • horizontal speed = speed * cos(angle)

    or in this case:

    pelota_candela.Bullet.Speed * cos(pelota_candela.Bullet.AngleOfMotion)[/code:3pc9qa8r]
  • Here are a couple of examples I made before. See if they're any help...

  • If you have no Sprite2 on the layout when that loop runs then Sprite2.Width and Sprite2.Height will return 0, which will spawn all the sprites at 16,16.

  • You're spawning all those Sprite2's every tick. You need to add another condition to event 10 there so that it only runs once - like 'on start of layout'.

  • You can hide the mouse cursor and set the sprite to mouse.x, mouse.y every tick.

    Or you can do this:

    [attachment=1:3ai6wezg][/attachment:3ai6wezg]

    I'm not sure which performs better.

  • Have you got cookies disabled? Apparently you need cookies enabled to use local storage in FF mobile.

  • You can compare Touch.X to scrollx.

    [attachment=0:3t8601xh][/attachment:3t8601xh]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • This can happen when your animation has frames with different collision polygons.