czar's Recent Forum Activity

  • Problem Description

    Sprite has an instance variable "char", type string/text.

    If the variable is set to a equal a single "space" character (instead of an "a", "b" etc) then the process of saving and reloading will trim the character from the instance variable.

    i.e., set it " " and save and reload will make it "" (no apostrophes of course)

    Attach a Capx

    https://www.dropbox.com/s/qz3k187e8hdv63s/SpaceBug.capx

    Description of Capx

    This bug came about when I was making my own virtual keyboard.

    The spacebar was assigned a " ", i.e., single space character. This works fine until you save and reload and the space character has been removed.

    Other keys are assigned other ascii characters.

    Steps to Reproduce Bug

    • Step 1 The saved capx will not have the "space" char in place so you will need to edit the instance variable.
    • Step 2 If you run it the text on the right will indicate the space is found.
    • Step 3 Now save restore and rerun and the space is gone,

    Observed Result

    manually put in the space - all good

    save and reload - no space - no good

    Expected Result

    Operating System and Service Pack

    wndows 7

    Construct 2 Version ID

    168

  • We have been selling Tables of Doom since September last year

    https://itunes.apple.com/nz/app/steve-s ... ?ls=1&mt=8

    Sales have been steady but not huge.

    Main hassles with itunes - you need an Apple with latest iOS and XCode - you also need a Apple licence.

  • necromaster Looks very nice indeed. However, I had some problems.

    I downloaded the demo capx. It works for Firefox but blows up when opening in Chrome.

    v 168 of C2 - some sort of assertion error. I can do a screenshot if you want to have a look.

  • 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

  • Try Construct 3

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

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

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

czar's avatar

czar

Member since 14 Dec, 2012

None one is following czar yet!

Connect with czar

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies