czar's Forum Posts

  • You could do either

    1. have multiple frames in an animation (all the same frame if you like). Normally animation speed is set to zero. Start animation when you step on platform and destroy at the end of the animation.

    2. have an instance variable that counts down and destroys sprite when <= zero reached

    Personally I would probably use option 1

  • Ashley thanks for the detailed response, that clears it up

  • Knifegrinder thanks for the interesting response.

  • Kyatric So why the difference in results?

    And I was under the impressions that cocoonjs was now using webgl on ipad

  • Just some observations regarding WebGL.

    I was doing an update for our Steve Storm and the Tables of Doom (https://www.scirra.com/forum/viewtopic.php?f=148&t=87022&p=693213&hilit=tables+of+doom#p693213) project. I decided to set it to use WebGL. With the changes to CocoonJS I figured it would be worth trying.

    I exported the resulting ZIP file and opened it in the CocoonJS Launch app of my iPad 3 (1st with retina display).

    I noticed the FPS weren't great and going into one of the layouts it dropped to 10 FPS. I also noticed strange graphic artefacts, the seamless tiled background now had faint lines around each "square".

    I retried the app after exporting with WebGL switched off in the project. The Layour now ran at 37FPS and the weird lines were no longer visible.

    This is not what I expected. I was under the impression that WebGL would accelerate my app and provide much better performance. However, in this case the opposite was true.

    Anyway, I thought I would put it out there as experience.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That is fun to have a look at - cheers for sharing

  • Ok I am not sure if this is the best way but this seems to work

    where temp goes from 97 to (97+26)

    Browser.ExecJS("String.fromCharCode("&temp&")")

  • Sorry, I wasn't clear I want the number to be converted to its ascii character

    i.e., 65 would be "A" and 97 would be "a"

  • I need to set up 26 keyboard characters in code.

    I can't seem to find an equivalent of

    for "loop" = 0 to 25 do

    KeyboardLetter set text chr(loopindex+97)

    How can I do the chr bit?

  • agreed

  • scratch that - a search button is now situated along the top after conducting a search - i am pretty sure it is a recent addition

  • yup it sucks - while I am here - Tom another gripe. Once you have started a search you have to go back to "forum" to start a new search.

  • Only thing I don't like about picking using UID is when you have a number of instance then it becomes a pain to remember the UIDs. The nice thing about the variable system is that you can access the instances using a FOR loop.

  • you can either use "pick UID" or you could every instance a variable - e.g., INDEX or TAG and set each instance to a unique value

    There are probably other ways like picking nearest etc but it depends on what you are doing

  • BluePhaze cheers for that - I would never have found it.