Squeakydave's Recent Forum Activity

  • Check out the tutorials section. There is a great tutorial for a self adjusting text box using the 9-patch

    https://www.scirra.com/tutorials/775/self-adjusting-block-text

  • [quote:8m9yrmod]Here's what I got going

    My layout is 720 pixels tall. I also wanted movement speed to scale down with the PlayerAnimation size too, so the illusion wouldn't be broken

    System: Every Tick

    -Set scale to (1/2160)*(PlayerAnimations.Y + 1440)

    -Set 8Direction Maximum Speed to (300/2160)*(PlayerAnimations.Y+1440)

    I found out that if I increased the denominator to 3 times the size of my layout, and added the remainder back to the PlayerAnimations.Y, I could keep the Y(720) yielding a 1 scale, while having the Y(0) yield me a .6667 scale.

    Thanks for posting. This is exactly what I am looking for. It gives me a 100% sized sprite at the bottom of the screen and not too tiny at the top.

    The trouble is that I don't quite understand how you worked it out and I would really like to.

    If you or anyone else could explain this in an artist friendly way I would very much appreciate it.

  • Oooh breath is baited <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I just ran into this. I had sounds set to play at a certain frame of an animated sprite (using a variable). I was getting a reverb effect which was the sound playing twice in rapid succession.

    The System - `trigger once while true` works perfectly. Thanks for sharing.

    Dave

  • Thanks. I'm really happy to have discovered C2. It really is animator friendly <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Here is a Chinese New Year e-card done with Construct2 (Animation Anime studio)

    Shakespeare's Horse

    I think I have found my Post Flash workflow and I greatly prefer the interactivity programming in Construct2 <img src="smileys/smiley1.gif" border="0" align="middle">

    Dave

  • That's a bit bizarre and something to look out for.

    I'm glad you got it sorted

    Dave

  • It could be that your png is over a bit of transparent background. When exported the index.html file sets the background to black. You would need to edit that manually if you want to change it. Below I have turned it to transparent:

              body {

                   background-color: transparent;

                   color: white;

                   padding: 0;

                   margin: 0;

                   overflow: hidden;

              }

    As a test you could try putting a coloured sprite behind the offending bitmap and re-exporting.

    Huge Regards

    Dave

  • Hmmm. well it seems like you need to edit the index html file of the exported project and change the background colour from black to transparent.

              body {

                   background-color: transparent;

                   color: white;

                   padding: 0;

                   margin: 0;

                   overflow: hidden;

              }

         

    I'm surprised that there isn't a project setting in Construct2 to set this or that it isn't mentioned in any of the tutorials. Mind you I am exploring C2 as a flash replacement and not currently for making games.

    Dave

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm. I can't seem to get this to work. I'm trying to export a html5 animation with a transparent background to a website using an iframe.

    I have one layer with the background set to transparent

    Clear background is set to 'yes' in the project properties.

    My iframe code is (though I have tried other variations as per the stackoverflow suggestion above):

    <iframe width="750" height="460" src="http://www.site.com/subfolder/index.html"frameborder="0" allowtransparency="true"scrolling="no"></iframe>

    The project tests just fine but once I upload it and put it into an iframe it comes over with a back backround.

    Is there a project setting I am missing?

    Many thanks for reading this and for any hints or tips you can provide

    Huge Regards

    Dave.

    Ideally I want to keep the html files minified as it is already a bit of a hefty project.

  • I just bought Spriter Pro and C2 in my ongoing quest for a HTML5 Flash replacement.

    One question though, and I realize that the plugin and Spriter are not finished yet, How do I synchronize sounds with a specific point in my animation in C2?

Squeakydave's avatar

Squeakydave

Member since 15 Jan, 2014

None one is following Squeakydave yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies