maxxscape's Recent Forum Activity

  • You might be able to find what you are looking for by searching the tutorials section

    https://www.scirra.com/tutorials/search?q=moving%20npc

  • do you mean something like this?

    http://www.w3schools.com/jsref/met_win_resizeto.asp

  • When you shot the little runners, you get an effect - http://zombiedongs.com/helo/

    I used particles for this.

  • gumshoe2029

    Right - and php / mysql is what the tutorial shows... The code should be updated for PDO because when PHP 6 comes out, a LOT of older code won't work - in fact nowadays, if you use older code and don't suppress errors, you will get feedback saying this or that has been deprecated, or will be soon... So it pays to stay ahead of the 'game'.

  • Check this -

  • https://www.scirra.com/tutorials/346/on ... -php-mysql

    This is a video tutorial that will walk you thru - step by step.

    It does not use PDO prepared statements but it does work...

    There are some things you could add to it like checking for the user IP address that would help prevent someone from submitting the same score twice.

    Also, if you wanted, you could check the current top 10 high scores and if the current high score is lower than the lowest of the top 10, don't addict.... This would keep your list from growing...

    It does use mysql tables so you would need your own server and the knowledge and capability of adding the database and tables, assigning rights and setting up the connection to the database...

  • updating the code in the tutorial from mysql to PDO prepared statements helps reduce mysql injections.

  • Like Xavier says - capx...

    but is everything on the same layer?

    I also notice there are times when the arm or whatever he is swinging around or whatever it is, is in front and other times it is behind...

  • Are these music tracks or sound effects? are they being preloaded?

  • With distance, you would probably also need to determine the direction... will it be 'like a train' and follow a track (or path) ?

    If it is going to be like a train, you could always have the locomotive and then pin your cars, one to the other forming a chain for your train.

    Then have your train move by xx pixels initially, say 2, then click and it moves by 4, then click and it moves by 6... you could set up a variable for this and use whichever mouse click (or touch) event that would suit your needs... meaning, can the player click anywhere, on a button or throttle control or click directly on the locomotive...

    First, get your locomotive moving like you want and then add the cars... At least that is how I would approach it... One step at a time...

    There are several ways this could be approached, all depending on your wants and need but maybe this will help a little...

    Try searching thru the tutorials using different keywords... You probably won't find one to give you exactly what you need but you should be able to pick up enough bits and pieces to get your train moving in the right direction...

  • Also - search the tutorials - There is a lot of great information there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you include your CAPX ?

maxxscape's avatar

maxxscape

Member since 19 May, 2014

None one is following maxxscape yet!

Connect with maxxscape

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies