Ubivis's Recent Forum Activity

  • hmm, set the instance variable to a value (I would say seconds) until it should be destroyed. Each second, deduct 1 from the variable for each of the sprites.

    For each NPC Sprite, if variable <= 0, destroy it.

    EDIT: Example attached

    BTW.: To know if you did it correctly it is always a good idea to attach your project file, that we can have a look into it

  • I did experience with this too a while ago (Spawning 3 enemies every second on different locations of my map and let them go to a center point). By left clicking I was able to set a wall and with right clicking to destroy a wall. The best solution I got was to just assign the pathfinind at the beginning and only update the path, when one of my enemies collides with a wall.

    Still no great experience, but I do hope that this will improves sometime.

  • hmm, on IE and Firefox the game throws JavaScript errors on me after some time. I will have to let someone else have a look on your code, as I can't find a problem

  • Without having a sample capx of your game, it is hard to tell if it is a problem in your game code or just your internet connection

    If you could share your capx, I am sure someone is able to help out on your problem.

  • Please have a look here: https://www.scirra.com/tutorials/303/ho ... o-cocoonjs

    Under the point "Compatibility" you can see:

    - The form control plugins Textbox and Button are not supported.

    • The XML object is not supported.
    • The Facebook object is not supported.
    • The letterbox fullscreen modes are not supported. If they are selected, it will fall back to 'Scale outer' mode instead.
    • The Text plugin's 'Set web font' action is not supported.
    • The WebStorage plugin's session storage is not available. Use local storage or global variables instead.

    A possible solution:

    Add images for the numbers 0-9 and when you touch one, add that number to a text field.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Webstorage only stores strings.

    First I would suggest to have a read on this: https://www.scirra.com/manual/120/webstorage

    After that, convert your number to string before saving it and on load, turn it back into an integer <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • a possible solution would be using the Browser Object and the "Execute javascript" Event:

    "window.parent.location.href='yourURL';"

    EDIT: I have not checked the functionality in an iframe, but the code will hopefully work

  • 2 backgrounds are enough... both a bit higher than your layout, when one layout leaves the layout on the bottom, relovate it on top of the other one. Infinite scrolling

  • I am using the Pro version for about a week now. You can export your made up tile set to an image file and import it into "Tiled", save your work there and import the map into your C2 Project.

    A lot of nice possibilities

  • Ah, okay... the problem with your set up was, that you used one image object for all the images. I tweaked your event sheet a bit and it works now as you inteded <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://drive.google.com/file/d/0B_5xNk ... sp=sharing

  • I don't have my C2 available right now on this computer and will have a look tomorrow when I'm back at my work computer, but I think my example screenshot above could solve your problem.

  • no idea if you have a question or not, but what you want is this:

Ubivis's avatar

Ubivis

Member since 22 Feb, 2012

None one is following Ubivis yet!

Connect with Ubivis

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies