XManBG's Recent Forum Activity

  • OK Ashley, thanks for your response. My expectation was based on the common way the Create Sprite works: once the properties of the Sprite are set, every new instance inherit them.

    Anyway I could think of a way around by saving the re-sized first Sprite height and width and re-setting them for every next creation.

  • Link to .capx file (required!):

    Link to CAPX

    Link to HTML5 example

    Steps to reproduce:

    1. Create new object - Empty Sprite

    2. Use Load image from URL to load i.e. smaller or bigger image than the created one - my example is with 94x94 px image. Set the Size property to Resize to image size.

    3. Use the system event to create a new instance of the same sprite object.

    4. The new object has the initial size and not the adapted one from the Load image from URL event.

    Observed result:

    The initial Sprite object is re-sized to image - as expected, but the new one becomes the original sprite size.

    Link to HTML5 example

    Expected result:

    Both Sprites should be the same size.

    Browsers affected:

    Independent from browser - it is C2 alone

    Operating system & service pack:

    WinXP SP3

    Construct 2 version:

    Stable release R132

  • +1

    I could imagine to use the Load image from URL along with Animation Frames of a Sprite Object. Just need an additional C2 Action implemented - Create new Animation Frame, wherein I would load my next image for the set. The new frame could just appear as last in the active animation set of the Sprite Object.

  • Bump

    Hello I'll use your asking to include my concern too: To use a Sprite for animation, I have to have an Animation Set, and Animation Frames of course. I couldn't find a possibility to create the Animation Set as an Action, and to add some Animation Frames to it during the same Event (just before the next Action "Load Image from URL").

    Is it possible to make an animation by using Load Image from URL??

    What if a Sprite does not have any Animation Frames yet??

    Cheers

  • :) Nice, thanks

  • Please R0J0hound, here some more detail from my observations... maybe you could find some time to take a look... ?!

    Simple Project: just the Canvas Plug-In and a simple procedure to draw a line with every mouse movement.

    Link to HTML5 uploaded: HTML5 Site

    Link to C2 r132 CAPX: CAPX

    You can try this at home: start moving the mouse over the Canvas Object and observe the memory amount needed for the browser application. I took two screenshots, one from Chrome (version 27.0.1453) operation and one from Mozilla (version 21.0). Both behave the same: crashing after memory full.

    Links to both screenshots: Screenshot 1 Scrrenshot 2

  • Hello Construct 2 Team, following suggestion:

    Would it be possible to expand the Sprite Object properties in that way to use also Project Files as image input??

    Sincerely

  • Hm, last time I thought that the problems are coming from JS minify option only, but unfortunately I was wrong. Also without minifing, the Canvas makes Chrome and Firefox stuck and crash. I'm sure, that the situation is connected to the continuously improvement of C2 and its newest versions, because I didn't observed problems before a month or two. And I like the Canvas Plug-In and I'm using it strongly in all my ideas.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeh, I noticed too, that the C2 JS minify makes on HTML5 export the Canvas Plug-In buggy. What could it be - the Plug-In code or C2 itself?!

  • I would say "no, you can't do it for the complete sprite!", because a picture or sprite has normally not only one color, which you could read out. Every point of that picture has its own color and alpha.

    But I'm giving here my +1 vote for such an expression, which returns the RGBA values of a sprite Image Point number, i.e. the Origin or the custom Image Points under Edit animations...

  • Thanks and yes, I know, and if Scirra minds it, I'll remove the link. Anyway that's a temporary solution until its real implementation.

  • Following the firebelly's note, I allowed myself to take the original Sine behavior, extend it with the Sine Reset function and re-pack it. To be found for download HERE

    Please extract it directly into a new directory: ...\Construct2\exporters\html5\behaviors\sinx

    Restart C2 after that. The new behavior appears next to the standard Sine and would not be replaced after C2 update.

XManBG's avatar

XManBG

Member since 18 Jan, 2013

None one is following XManBG yet!

Connect with XManBG

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies