pcprice76's Forum Posts

  • Not to be polemic, but happened AGAIN and i lost one hour of work!!!!!!!!! Is anyone in Scirra ever intended to solve it?

    It's really annoying...

    When this happens, the browser say this:

    "The HTMLImageElement provided is in the 'broken' state"

  • If following exactly guidelines is more important then solving this bug...ok. But, Ashley, i think we gave all information we could. Today happened again to me, had to exit my project without saving, losing some work, to prevent the loss of all sprites. And again, happened after a standby resume.

  • Ok..

    A perfectly fine solution rejected..

    I really appreciated your idea, you saved my work!

  • The capx is useless in this case, as it's not related to it.

  • 2 things i've done before it happens

    1- copy the directory content of my game for back up

    2- resuming from standby with project left open (more probable cause)

  • Problem Description

    Sprite images disappear from project!

    Observed Result

    While working, all sprite images disappear. You start the project and get the error in the image. If you double click on sprites, all images are no more there... secon time it happens, need to close construct losing work done and open it again

    Affected Browsers

      all

    Operating System and Service Pack

    windows 10 latest

    Construct 2 Version ID

    244

    Image:

    https://www.dropbox.com/s/jr9llroceyzrh ... 8.png?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have an issue after switching layout. At the beginning of it, an interlude starts with several things happening. I configure what happens in my XML file (walking, speaking, waiting events and so on)

    I have an issue with my speak function taht is not triggered if it is called too soon (like for first) and i discovered that is for the "pick NPC sprite" in my function, because when is called the sprite is not yet drawn on screen. In fact if i put a wait 0,1 before calling function, everything works again.

    WIch is the best way to start events in my layout after all is drawn on screen? (the layout is a simple screen with backgroun and objects)

    Thanks!

  • Hi, i'm developing an engine for Point and click adventure game

    Now it's time for puzzles (like: pick up key, speak with NPC now you can open door)

    Is the case for using Finite State machine system?

  • well, little hard, because must last exactly the lenght of speech.

    I solved with loop and stopping animation

  • I'm making an Adventure game configured through an XML file. The character has a Speaking animation and i need to change the Repeat count according to lenght of speech... but i cannot find how to change that parameter

  • Wow, really interesting, thank you. I'm trying now to use only one sprite and see if is mor efficient in code (at least xml file will be shorter)

    Reallt thank you for your help

  • pcprice76

    Hi, check the firebase API plugin params if you missed something or may be main firebase plugin. And as this error says didn't you close the popup?

    It suddenly begin to work... :/

    By itself...

  • In some (but not all) situations there are gains to be made in performance by limiting the total number of different sprites objects in your game, but there are also other good reasons for containing multiple objects on a single sprite, mainly by making your project a little more readable and simplifying the code requirements.

    There are a few factors to consider before determining what the best solution would be:

    1) I would tend to only include objects on the same sprite that appear on the same layout as you would otherwise be filling up your memory for each layout with unnecessary art assets.

    2) I would only include objects on the same sprite that have simple behaviours and use the same basic logic e.g. all inventory items, otherwise your code will become overly complex trying to differentiate between the objects when you could instead just refer directly to a specific sprite.

    3) If there were groups of objects that appeared on different layouts with similar behaviours, or objects with quite complex behaviours and multiple animations on the same layout, then I would prefer to put them on separate sprites and add them to a family so that I can still use the same code groups to control them.

    4) In certain circumstances I would use the individual frames on a single animation for different objects e.g. scenery objects, non-animated pick-ups. This also makes it quicker to import graphics as you can import a sprite strip to a single animation instead of individual frames to separate animations.

    5) It is much easier to perform actions like spawning random objects when they are on a single sprite: for example, if I had 10 pickups and wanted to spawn a random one then if the pickups were on separate sprite objects I would need to assign a random number to a variable to determine the pickup and then have a string of 10 conditions to spawn the correct one; if instead I had each pickup on a single frame or animation then I just spawn the sprite and pick a random frame or animation - 2 actions on 1 event as opposed to 10 conditions.

    really thanks for your reply!!

    I thought the same about "organisation" of all my sprites, would be better. The only thing i would like to know if there can be a difference in performance using different sprites instead one.

  • In less words.. For items in an adventure game is better a single sprite with different animations for every object or is the same to use a different sprite for each one of them? If better to use one sprite, what is the reason? Thanks

  • Hi, sorry for the noob question. I'm trying to do an adventure game and i'm using sprites with instance variable "name" to identify them in the XML file

    I think that probably i'm doing it the wrong way, if i understood well it would be better to use a single sprite and an animation with the name that will be used in XML in place of variable one. My question.. is really better to use a single sprite with multiple animations for different objects and, above all, what is the reason?

    Thanks in advance,m also for you patience, and sorry for my english!