OddConfection's Recent Forum Activity

  • JJEvil

    Yeah, I guess I was a bit more fortunate. My primary school had 3 Apple IIe computers that students could use, not that the teachers would let us use them very often since most of them struggled to even turn them on. Most of my early programming was done at home, copying things out of magazines and books onto the C64, and trying to tweak them. And I always had some sort of games system - Intellivision, Atari 2600, Sega Master System (my brother had NES), various Game & Watch games (favourite was the TableTop Snoopy game which I think I still have somewhere), and more as the years went on.

    At high school, we actually had a whole classroom full of computers! I don't know whether it was fortunate or unfortunate, but the teacher who taught programming admitted he was only one lesson ahead of the students so he let me do my own thing since I was ahead of everyone else. I ended up making a Tic-Tac-Toe/Naughts&Crosses game and a few other simple games. We did a mix of BASIC, Pascal and dBaseIII+ throughout high school.

    University was a bit more instructional. We did C/C++, Assembler, COBOL, Scheme and a few other languages and covered topics such as Graphics, AI and databases. Of course, most of the lecturers made it so boring, it mostly killed my desire to program.

    After university, I moved more into IT support and only did the occasional programming for work or some hobbyist stuff.

    Now I get to make games for a living and code in Lua, the easiest programming language I have ever come across. I mean seriously you don't even have to give variables a type!

    I still make simple games as a hobby, hence Construct 2, but hopefully one day I can turn those simple hobby games into something people might buy and I can stop making other peoples games.

    Anyway, good luck making your games, I hope you keep having fun with it and wish you all the best.

  • I'm 36 myself and been programming on and off for most of my life - I think my first programme was written in BASIC and copied from a MAD magazine onto a Commodore 64 when I was like 6 or 7.

    I stumbled into an indie game job about 5 years ago after doing some hobbyist game stuff in my spare time, but it has only really paid off in the past year or so.

    I'm getting paid much less than now I was before I got into game development, but it's enough to get by on and a much more enjoyable job even if it is mostly making someone else's game idea become reality.

  • discoverthecurse

    I'm assuming bcstate is an instance variable, in which case you with need to do ObjectType.bcstate instead as just bcstate by itself makes Construct 2 look for a global variable.

  • - woops, my bad, didn't notice this was in the Javascript SDK sub-forum

  • DylanBannan

    A small game I exported from C2 was just over 4MB as raw files and about the same when wrapped into an apk with Phonegap Build, so I guess Phonegap adds the least overhead out of the available wrappers.

    About 3MB of that was for the 3min music track, so I could have got it down to about 1MB if I removed the music or replaced it with a shorter sound loop. If you've already optimized your images, music would be the next place to look.

  • czar

    The Browser->On back button pressed works for me on both a Samsung Ace (Android 2.3) and Samsung Galaxy Tab 3 (Android 4.1) with a game wrapped using PhoneGap, so I'm not sure why it's not working for you.

    The manual also suggests it should work.

    On back button

    Triggered when the user presses the device's 'Back' button. Note not all devices have this button (e.g. iOS devices only have a 'Home' button) and not all platforms support this trigger.

    What actions are you trying to execute when the button is pressed? Maybe they are the bit that's not working. You could try just changing text on screen to test it.

    It could also be an issue with whatever wrapper you are using, some things don't always work with some wrappers.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sprites have a Count expression (e.g. Sprite.Count) that you can use to keep a running total of instances during runtime.

    Here's a simple example:

    [attachment=0:fcml6io6][/attachment:fcml6io6]

  • discoverthecurse

    Put " " around the text/sting value, otherwise it thinks it's a variable e.g. "play" not play

  • spades1412

    Make the score a Global variable instead of Local variable so you can access it in another event or another layout.

    Then do:

    Character->Destroyed
       Set text to "Game Over - Final score is " & score[/code:34b447bd]
  • smoke84

    You need to move the Set animation frame and Set value actions after the Create object action, so it will only pick that created object item, otherwise it doesn't know which specific one to set so it sets all of them.

  • Allardje

    [quote:3n9fq2tq]I can use 2 variables and both set them to random (0,8).

    Than check if one of the 2 is different and set the frame to one of them.

    That's not exactly how to do it, only one needs to be set randomly, you use the other to store the last value for comparison so you don't get a repeat.

    I posted an example capx here about randomly selecting music tracks without repeats.

    Basically I just used a System->While along with variable comparison until a non-repeat value was found, then I used the new value.

    You should be able to adapt it to your case.

    EDIT: I ended up adapting it

    [attachment=0:3n9fq2tq][/attachment:3n9fq2tq]

    It waits a random time (or in this case uses choose but random would work too) and displays the current and previous wait times, as well as the number of potential repeats that could have occurred that time around.

  • alinathomas

    You can find a tutorial on using Phonegap to build your exported game into a native app here

    It mentions that performance can be low using Phonegap, but I'm working on a simple game that works fine on a Samsung Galaxy Ace (Android 2.3) after using Phonegap Build, so I guess it depends how complex and/or optimized you have made your game.

OddConfection's avatar

OddConfection

Member since 26 Jun, 2012

None one is following OddConfection yet!

Trophy Case

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

Progress

14/44
How to earn trophies