frozenpeas's Recent Forum Activity

  • It's a bit hard explaining the full process on the forum. What you need to do first is read the excellent tutorial here:

    https://www.scirra.com/tutorials/307/ar ... -beginners

    Then once you have dived in and given it a try, you will have many questions to ask.

    You then need to ask these specific questions on the forum in your own thread (probably the best way to get an answer)

    I've only had Construct 2 for about 2 weeks and I'm well into this excellent program.

    Most of the problems I've had, have been through rushing into things and not reading enough first.

    The people on the forum provide some great answers but they need specific questions.

    Some tips that I've learned regarding arrays and Construct 2 specific to my project:

    1. In order to use arrays you need to add the array object first

    2. Start off small and create a one dimensional array (properties window)

    3. The term "webstorage" works on browsers and also when you export it to android

    4. Use the debug window to check everything is working and to make sure values are being stored

    5. Load the scores at the beginning of the game process

    6. Store the scores as and when they happen (in case the app crashes/battery runs out etc)

    7. To store "Level Complete" add a 1 to the end of the array

    8. Take it in small steps, do one thing at a time and check the array in the debug window

    My array looked like this

    0 - 440 -1 = translates to 0 is the array key (starts at zero) - 440 (score for that level) - level zero complete (I named my first level zero 0)

    1 - 221 - 1 = see above

    2 - 532 - 1 = see above

    3 - 0 - 0 = Level 3 - Zero score - Level not complete

    I needed one array row for each level.

    You can add up all the scores to show their high score from the array

    You can flag up levels as competed by adding 1 to the last section

    As mentioned I've only had Construct 2 a number of weeks so some of this information may be incorrect then again it may help.

    Good luck

  • Thanks for your reply, the same thoughts had crossed my mind.

    Unfortunately, the rabbit is only an example image and the user may add their own image of which I will have no control.

  • Need to zoom into a layout and having problems linking the background image (rabbit) position to the foreground image position (glasses)

    I've tried the scale option on the rabbit and glasses but the alignment is all wrong.

    Tried scaling the entire layout with "set layout scale to 1.5" which kind of works but plays havoc with the GUI and I'm not sure how reliable x-y coordinates become when scaling layout.

    Anyone know a way around this?

  • I've created a family "buttons" with boolean variable "isClickable".

    Now everything which is clickable should be added to the family and then in event sheet you can create conditions like

    On object tapped & object isClickable - do something

    Setting isClickable to true/false is like enabling/disabeling the clickable object.

    That's a neat way of doing it.

    Thanks

  • Wow thanks, that is beautifully simple.

    Your help is much appreciated.

    All the best.

  • Wow thanks for the examples.

    That's certainly giving me some ideas to chew over.

    I especially like the second example.

    All the best.

  • Thanks for your reply it's much appreciated.

    I have added them as project files (created a "Photos" folder under "Files" in the Projects view)

    So when I create a sprite how do I reference the images within the Photos/Files folder?

  • Tried putting one photo on the layer above and creating it's own mask.

    But the issue is still that a mask seems to apply to all the layers below it and not just the immediate layer below it.

  • Hmm it's just not working.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 2- How do I convert the bit of php to use POST instead of GET and does that make it invisible?

    $username = $_GET['fname'];

    $password = $_GET['fpass'];

    Will become

    $username = $_POST['fname'];

    $password = $_POST['fpass'];

    Sorry can't help you on any of the Construct 2 options. I've only had the program a week.

  • Sorry just noticed the typo

    Not sure about viewing POST and GET variables in the console though. Trying one then other I suppose is the answer.

  • Basically, clean the data before it gets anyway near the database mysqli_real_escape_string will achieve this.

    $username = mysqli_real_escape_string($username);

    etc

frozenpeas's avatar

frozenpeas

Member since 14 Apr, 2015

None one is following frozenpeas yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies