Pode's Forum Posts

  • Laurent : you need to check the demo ! <img src="smileys/smiley2.gif" border="0" align="middle" />.

    You need two Sprites. One of them to which you add the behavior. After that, you can go in the "events" sheet, and add an action on the Sprite on which you added the behavior, which consist in one of the "blending action".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Laurent : those are the supported modes : src-over, screen, multiply, difference, exclusion, src-in, add, lighten, darken, overlay, hardlight, colordodge, colorburn.

  • shiprat odesign : do you known in advance what kind of gesture you want the user to do ? If it's a shake, do you know how much shake you want to have, and on which axis ?

  • Laurent : I don't know if the iPad is going to be fast enough, but I added blending modes between two Sprites : http://www.scirra.com/forum/behavior-sprite-effects-inject-text-on-sprite_topic51516_post324649.html#324649

    Examples :

    • multiply

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo4.png" border="0">

    • add

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo5.png" border="0">

  • I have updated the behavior, with new effects :

    • perspective transform

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo6.png" border="0" />

    • blending modes ("like photoshop")

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo4.png" border="0" />

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo5.png" border="0" />

    • whiten above RGB

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo2.png" border="0" />

    • darken above RGB

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo3.png" border="0" />

    • multiply by Color (RGB)

    <img src="https://dl.dropbox.com/u/1412774/Effects&TextOnSpriteDemo/demo1.png" border="0" />

    Since everything is done in JS (contrary to WebGL shaders, the perspective transform can be a bit slow, but the original implementation favors quality over speed).

  • bjadams : you can use the "whiten" function, in the new build at the first post.

    All : updated first post, with new functions & effects :

    • perspective transform.
    • blending modes
    • whiten above RGB
    • darken above RGB
  • Rory : yeah, I know all that. But if you publish for iOS, you can count how many sales you have done on the AppStore, and act accordingly depending if you are < 5000 or over.

  • Ashley : is it possible to add a simple checkbox "don't export manifest" ? When I test and deploy plugins for C2, the debugging part is very annoying when I forgot to remove the manifest, and that the browser doesn't update the page with my plugin modification because of this.

  • DiGiCORE : in fact, what they said isn't very relevant to HTML5. They are working with native binaries. When going native, XCode on iOS is using a fileformat that is indeed having the .png extension, but in fact it's not a true PNG (for efficiency reason, Apple swap internally the channel order of their file, to let OpenGL ES, the backend displaying the images and doing manipulations on them, go faster).

    Because of that, if you load true PNG files in an XCode project, without "optimzing" them the Apple way (swapping the channels), the app is going to do it at load time. Meaning you'll be slower than any other fileformat.

    As the original author is saying, when you optimize them, and make a pass of PNGCrush or a similar tool on them, they are as fast (or close) to other file format.

    Finally, browser (HTML5) don't support natively TGA. You can only go with BMP/JPG/PNG(and XBM/PBM but don't deal with that, it's old, buggy and unuseful).

    If you want to load another file format, you need to create a wrapper to deal with that format in JS, and it's going to be slower that the eventual benefit of a "faster" file format...

  • nutmix : the solution : put your dialog on top layer, and make that layer invisible. Put all the logic of the bottom layer in a Group. When you display the top layer, deactivate the bottom Group. When you hide the top layer, you can activate the logic of the bottom Group.

  • bjadams all : I'll repost here what I told you in PM, to be sure everbydoy is on the same page <img src="smileys/smiley2.gif" border="0" align="middle" /> : it's working in Safari, however the browser is slow to update when an effect has been applied. Even when saving the image, applying an effect and resetting the image, I need sometime to wait a bit before reapplying a new effect.

    I'll dig further in Safari to know what can be done.

  • : in the html file you are embedding in the Iframe plugin, are there some img or other pages linked (via regular <img> or <iframe>) ?

  • : are you including all files referenced by your HTML file inside the "Files" folder (and keeping the subfolders hierarchy) ?

  • NRABrazil ramones : I updated the first post with a new build. Now minification works properly.

  • Ashley : with what tool are you bin packing the files ? I can propose a quick bat to include outside files inside exported .bin file, to add files necessary for the Iframe plugin.