PixelPower's Forum Posts

  • Do you mean like this game I made, try it and if thats what your talking about I can help.

    https://www.scirra.com/arcade/action-ga ... ights-7569

  • >

    > 1) Make a global variable =0

    >

    > 2) make a function or multiple functions

    >

    > 3) When the global variable =1, then trigger the functions to be true.

    >

    > 4) Dont forget to include the event sheet with other events sheets.

    >

    > Easy as cake!!

    >

    I strongly suggest to avoid global variables as much as you can if you plan to do a big project. Global variables bring mess to the project and block the possibility of encapsulation. It is already a pain in C2 that all functions are global.

    Well the OP wanted a method so he doesn't have to repeat the same code over and over. Because a global variable isn't encapsulated , then he can just call it easily whenever he needs to without having to repeat code over and over.

    The only thing in my opinion that brings a mess to a large project is not writing down want you want 1st. Before I take on a larger game I write down in notepad the different scenarios and things I want in the game. That way I don't get stuck in the middle because I calculated what I was going to do.

  • How can I check it out , I don't have your file?

  • Try inner scale that what I use.

  • Ok here press spacebar to punch and right arrow on keyboard to move forward. Hold down spacebar to have the man punch while walking.

    http://www19.zippyshare.com/v/GVI741qX/file.html

  • yes but it would take some tedious work

    1) Make a global variable for each character with its own localstorage key.

    2) When you buy the character, make sure to update the global variable and the key so it saves you buying the character.

    3) Update your code if your global variable is the right value, then you don't get charged for the charater.

  • Try Construct 3

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

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

    1) Make an invisible block (sprite)

    2) make the invisible sprite the one with collision detection, not your main player.

    3)Set the invisible sprite to the center of your player.

    Download the example that I showed you before it solves a lot of problems you will come across.

  • When you bring fire, more fire will come. Thats what happens when you open a thread like this. Now as far as reusing code is easy to do with a little critical thinking.

    1) Make a global variable =0

    2) make a function or multiple functions

    3) When the global variable =1, then trigger the functions to be true.

    4) Dont forget to include the event sheet with other events sheets.

    Easy as cake!!

  • You can host your capx file on a site like zippyshare or dropbox , then post link here. Also how is your friend the Fa$$ot when you were looking for his boner?

  • Any feedback from players who played DK lost levels is welcome!!

  • PixelPower I am making a top down shooter and i have completed all the art and am a fair way into the programming; however I am not sure if it will end up with lots of path-finding bugs that I can't fix or if it can't handle a larger game as I have looked through older forum posts and people have seemed to have problems with things like enemies merging.

    Ok I do know that the line of sight command seems to not be working from what I have seen in the forum. If I had that problem here is how I would code it

    1) Make invisible spots of the screen using sprite.

    2) One spot would be the trigger which will set off a variable when your player collides with it.

    3) When the variable is true, then you set the enemies movement up using 8 direction or bullet behaviors.

  • Great job its simple but fun. The biggest question is how you landed the job? PM me the details when you have time.

  • rkruis did you try my methods yet?

  • Triforce did you download the sample I made and try it?

  • The one being saved is the one your working on but if you follow what I said on top you can reduce the projects by closing them.