vancouver's Recent Forum Activity

  • Hi,

    I am looking to learn more about C2 and wonder, if anyone here has the book:

    HTML5 Game Development from the Ground Up with Construct 2

    What I am especially interested in is how well the export to various platforms are covered.

    It would help me if anyone can share their opinions/impressions about the book and the "export" chapgter(s) here.

    Thank you,

    V

  • Thank you Chris!

    Funny you'd mention left/right handed.

    The first version had the hotspots which trigger the notes in the center of the app.

    Because I tested on a desktop, I didn't realize how hard that would be for a thumb to reach when used on a mobile phone or tablet.

    So yes, that is easy to implement and I don't see a reason why it wouldn't make it into the app.

    On behalf of all left handed children who tackle music notation via this app, I thank YOU!

  • AndreasR

    Thank you for shedding some new light on variables.

    I have checked the manual but for some reason, I have never learned anything in my life from a manual.

    I've combed YouTube, looked at Udemy etc ....

    Every time someone explains something I get 1% closer but still, I can't find a way to learn how to use C2 efficiently.

    Most tutorials are for games which I nether play nor make.

    The reason why I would like learn about variables and how C2 implements them is because I want to make an app that can "read" a series of sprite's frame numbers and trigger actions according to that. It is kind of complex but doable. Will see ...

    Anyway ... thanks.

  • Hmm, could you attach a file that shows your example using "tons of" Touch | On touched events? Then we can see if there's a good way to simplify it. I think that without a good context, it's hard to know how to use variables to simplify the code.

    For example, if the 4 sprites all behave the same way, you can add them all to a Family and then make one Touch | On touched event for the Family.

    Dalal

    I have done that and cleaned up the event sheet. I like families and will use them from now on.

    Thank you for suggesting that.

  • I just uploaded an early preview that creates two octaves of notes starting at the low A (Treble Clef).

    So .... if anyone is interested in learning the note names from scratch, this app will get you there.

    I will update it on a regular basis until it has everything it needs.

    YOUR feedback is most welcome!

    http://littlecomposers.com/apps/treble-clef/

    To use this app, just click anywhere on the red line ... the rest is self explaining.

  • Hello,

    I am wondering if someone has a little time to explain variables and instance variables.

    I've watched a few tutorials on youtube but .... here I am.

    Let's say I have a game that consists of four sprites.

    Each sprite has three animation frames (each frame has a different color).

    It is easy to bring in a touch object and tie the touch (On touched) to advance any of the four sprites to one of the available frames.

    It is also easy to do something else when the touch ends.

    I am wondering how I could use variables so that I don't end up with tons of "Touch | On touched | lines?

    If someone could make a simple sample file and comment it well, it would help me a lot to make my event sheet shorter and easier to manage.

    Thank you,

    V

  • I just finished a demo video to be shown until the real one will be recorded in a week or two when the UI doesn't change anymore.

    There are still a few features I'd like to implement but all in all, this simple app get's the most page views .... who knew! LOL

    http://youtu.be/fZv6hsu7vn4

  • Oops,

    I totally missed the protected part of your reply.

    There are two ways to go. Use a protected dir inside your ftp structure and a .htacces entry or go the i frame way and a plugin like membership or members which is what i use.

    Don't use a password. You want to build a list of members because the value of your games lies in the site membership.

    The formula is a simple one. The more members and active uses, the more google ad revenue and so on....

  • Thank you!

    I just came across something ...

    In WordPress, you can use a "link" in the menu as well.

    It would be MUCH BETTER to just link to your game index.html file from wordpress and make it open a new page (target="_blank")

    This way, you don't have to deal with resizing issues and there won't be a menu which will take away space from your game.

    I think that from now on, I will just link my game pages and open them in a new tab.

    This way, they display perfectly and when the user is done, they just close the page and land right back where they came from.

    Maybe this will come in handy if you are in a hurry to post your games.

    Ciao for now,

    V

  • just remove the "space" after https://

    like:

    https://googledrive.com/host/0B9sfSi5X78ftWkZWbWowUEdTVm8/index.html

    Never mind ... thee site doesn't finish loading ....

    The future of eduction, as we know it, is ..... dark.

  • Men Men Men Men Manley Men,

    that is actually a great idea. I don't play computer "games" and don't know what is actually possible.

    So basically, I'd create a transparent sprite on the left hand side which, when touched (twice maybe) slides in from the left with the menu buttons ....

    I will have to do a little reading to learn how to pin the buttons etc...

    Thanks

    * If you don't watch Two and A Half Men then please ignore the first line

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • RenatoB

    Hello Renato,

    On your FTP server

      create/make a directory to hold your games
      upload your C2 HTML5 exported files into that directory

    Inside WordPress

      Make a new blank page
      Insert the "iframe code" in TEXT mode!!

    Paste this into your WordPress page:

    <iframe src="<URL to your project's index.html>" name="<Name of your Iframe>" width="???" height="???" frameborder="0" scrolling="no" ><p>Your browser does not support iframes.</p> ></iframe>

    Replace the URL with: "http://yourdomain.com/directoryname/subdirectoryname/index.html"

    You don't even have to use the "index.html" part because the server "expects" an index or default html file but still, it is best to specify.

    Width and height of your game

    Here is where it get's a little tricky. The culprit is RESPONSIVE web design.

    Assuming you have a WordPress theme which comes with that feature (and it should), you'll need to look over your "main.css" file and find the class which deals with making inserted objects responsive.

    Most examples on the net only describe how to do with with a YouTube video so most likely, you will have to add custom CSS and then use a <div> tag to reference the "class" (CSS Class).

    The above iframe code would then look something like this:

    <div class="xxxxxxxxclassname">

    <iframe ...... </iframe>

    </div>

    Please tell us your URL so that we can check if your site uses responsive design and if it does, you should be able to tweak the CSS class to make it happen.

    Also. If you have multiple games, you need to create a sub directory for every game title. Please make sure that the first directory (which holds the sub directories) is not empty because it is best practise to have an index.php file in there which you need to create with a text editor (for security reasons).

    On your computer, make a new file with this text inside and then save it as index.php

    <?php

    // Silence is golden.

    ?>

    This will display a blank page and thus, prevent a directory listing which would give away your file structure.

    See if this is enough to get you going.

    Maybe you will need to find a new WP theme or append your existing one with the following css class:

    You can find your CSS file inside

    wp-content > themes > themename > style.css (or what ever name the author used)

    I use this CSS code to make the magic happen:

    /* Flexible iFrame */

    .Flexible-container {

    position: relative;

    padding-bottom: 56.25%;

    padding-top: 30px;

    height: 0;

    overflow: hidden;

    }

    .Flexible-container iframe,

    .Flexible-container object,

    .Flexible-container embed {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    }

    So then, the iframe would be inserted this way:

    <div class="Flexible-container">

    iframe text

    </div>

    I hope you are up to speed with CSS otherwise all of this will seem complicated but it is actually no.

    The good news is that you only have to do this once. After that is created and you get the first game to display as you want, you can always just copy paste and only change the game sub dir and you are good to go!

    YAY!

vancouver's avatar

vancouver

Member since 9 May, 2014

Twitter
vancouver has 1 followers

Connect with vancouver

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies