Scavengrove's Recent Forum Activity

  • What if you build your own 'For' loop to process the array, handling a specific chunk each time it runs?

    Looks like this:

    <img src="http://i.imgur.com/WbRFvar.png" border="0" />

    Kcpunk666 - Here's a capx with those events + a text output to serve as a visual indication:

    dropbox.com/s/7dt74da3e81zvyn/iterating_array_loop.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I hadn't heard of game-icons.net, that's neat! Thanks for the information.

    Implementing all 1113 icons directly into the app would not be the way to go. It'd be far too time intensive to setup and would be insanely resource heavy.

    Instead, create a Sprite object to be the placeholder. Then, use the action "Load image from URL". The game-icons.net images are all powers of 2, so set the placeholder sprite's size to a power of 2 as well. (64x64 or something).

    Don't set the URI directly to game-icons.net images (it's bad practice, and it also wouldn't work (their Cross-Origin Resource Sharing policy does not allow it.) Instead, re-host the images yourself and point to the URI there. Alternatively, if you're using node webkit or otherwise planning an "offline" export, add the icons as project files and have the URI simply say the name of the icon in the project files. (for example, "crossbow.png")

    Here's an example that uses project files: dropbox.com/s/34pisqor3m2v1uw/ebrar.capx

  • Create a global text variable for name and a global number variable for age. On the layout, you can use a textbox object for input of name and age. Then save when a button is clicked.

    Here's a quick example w/ some comments to explain it. It's a little more complicated than it needs to be, but it illustrate some tricks about re-using objects instead of making unique clones for every need.

    Example: dropbox.com/s/hj5ir6j8ng055y4/sheppard1.capx

  • Could you please post an example capx? (or at least an example png?)

  • You're probably right; the bug appears only in preview mode for me.

  • Link to .capx file (required!):

    My account is too new to post link, but you can download the capx at:

    dropbox dot com/s/56j7pje4tipzgrs/r147_webgl_bug.capx

    Steps to reproduce:

    1. Create an empty project, add a sprite.

    2. Give it the effect "set color".

    3. Give it the effect "water background"

    4. Make sure "water background" is the second effect.

    5. Run the project and observe crash.

    Not all effects cause the bug, but it seems like if a distortion effect is second on the list and a color effect is first, it happens. Sphere and Water Background are the two distortions I got the bug with, when combined with nearly any other effect.

    Observed result:

    Error message at runtime stating: "Assertion failure: Warning: set rendering to current texture 1"

    Expected result:

    Effects applied and no error message appears.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: No? I have IE10, doesn't appear to apply any WebGL effects.

    Operating system & service pack:

    Win7x64 home prem, sp1

    Construct 2 version:

    r147 beta

  • I am having the same problem, eli0s - I spent a few hours today tracking this bug down and have figured out how to reproduce it. I'm submitting an official bug report right now, but just for anyone who's searching around, here's how to reproduce (Release 147 only):

    Create an empty project, add a sprite. Give it the effect "set color" and then the "water background" effect. ** Make sure "water background" is the second effect. ** Run the project and it crashes with the Assertion failure.

    Not all effects cause the bug, but it seems like if a distortion effect is second on the list and a color effect is first, it happens. Sphere and Water Background are the two distortions I got the bug with, when combined with nearly any other effect.

  • That fix worked for me Ashley, thanks!

    (Win7x64 sp1, Steam)

Scavengrove's avatar

Scavengrove

Member since 9 Sep, 2013

None one is following Scavengrove yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies