frozenpeas's Recent Forum Activity

  • You have to sanitize the date whether it's GET or POST

    Use mysqli_real_escape_string

    http://php.net/manual/en/mysqli.real-escape-string.php

    and use htmlspecialchars http://php.net/htmlspecialchars when echoing anything back to screen

  • Been thrashing out an idea for a basic photo editor.

    Load photo and make changes to photo through basic functions.

    The problem arises when I come to zoom into the picture.

    Zoomed 150% problem (scaled up 1.5)

    As you can see the left picture overlaps the right picture

    Desired result

    Would like to pan and move both zoomed in photos at the same time also.

    I have tried the mask method but unfortunately this masks out the photo on the right also.

    I have tried moving the photos to different layers but this has the same affect except the right overlaps the left this time.

    In Flash there was a method to apply a mask and it only affected the layer directly below.

    So the question is can a mask be specifically applied to only affect a certain instance or layer?

    Or is there another way of achieving this?

    Or is this totally outside the bounds of what can be achieved?

    Thanks

  • Is it possible to create a dynamic number of level select options based upon how many levels there are in a Global variable?

    Global "totalLevels" = 20 (create 20 links)

    Global "totalLevels" = 100 (create 100 links)

    A bit like an e-commerce shop where you add a product to a category and the page layout automatically adds the product and link.

    Perhaps loading this from a data file would make more sense.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Once a game has been downloaded to mobile is it possible to give the user the option to download further levels and if so how would this work within Construct 2?

  • Basically these are photographs (some 100 or so)

    I don't want to load them from a url as this will be running on mobile.

    Not sure what the best way of doing this is.

  • Is there a way to load a photo into a sprite from an array or data file.

    I have a sprite on screen that I want to re-use on different levels. Depending upon what level you are on it should show a different image.

    Hoping that I can simply store the images in an array or data file and change them dynamically depending upon what level the user is on.

    Thanks.

  • Got it I think

    Answer should be:

    1. Load in the 2 dimensional array at the beginning using JSON

    2. Set the local key to the JSON

    3. Access array through LEVELSARRAY.At

  • Just cleared my temp internet folder and there was some 135,000 reloadpoll text files. Clearing them took for ever.

    I know why they are there, but is there any need for so many?

    Thanks

  • Thanks will try the flag option

  • Decided to go with a 2 dimensional array.

    Just not sure how to save this using WebStorage

    Something like:

    WebStorage.localValue(THISLEVEL,0) to 1

    WebStorage.localValue(THISLEVEL,1) to 1

    WebStorage.localValue(THISLEVEL,2) to 1

    Hope someone can help.

    Thanks everyone.

    P.S. I'm loving this program

  • What is the basic concept for maintaining progress on levels in a game so that when returning to the game you can continue from where you left off?

    Do global variables and web storage provide the answer to this when running the game on Android?

    Hoping someone can point me in the right direction for a good read.

  • On my level complete dialog there is a button to go to the next level.

    Because this button is sometimes over a click event in the next level, it can accidently trigger the event.

    I have tried "on end of layout" and pausing but with no luck.

    What is the best practice to prevent this happening.

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