Guizmus's Recent Forum Activity

  • Javascript can't access local programs as far as I know. I thought you were using something like youtube's API in your page and wanted to call a function that would start it. I'm sorry but I don't know how to do what you are looking for...

  • yosualb

    well, what should the system do in the end ?

    Let's say there are 3 enemies and 2 players. What should hit what ? Does every player hit all enemies ? Does each player target their own enemy ? Does all player target the same enemy ?

  • Not sure I understand.

    If what you need is to call a javascript custom function that you have on the page, the best thing is the "Call Javascript" plugin that you can find here.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What do you want from this URL ? If you want to retrieve datas, use the AJAX plugin instead, it's its purpose ^^

    Here is how to use it

  • After reading your code, here is my first thought : a simple "state" value one the player/enemy object could help you a lot (could take "fighting" and "walking" as values). You can then divide your program in 2 parts :

    1/ collision detection, checking if all the "fighting" objects are still overlapping with some enemy (go "walking" if not), and checking if the "walking" objects are still not overlapping (go "fighting" if not)

    2/ functions

    • a first one "change state" that stops/restart the bullet behavior, depending on the new state. This function is called in the 1/ every time something changes state.
    • a second one "deal damage", that will be called in the "change state" function, and that will check that the objects it is called for are in the "fighting" state. This function will first deal the damage wanted, then wait for your "cooldown", and lastly call itself. The "fighting state check" at first in this function will ensure that this function ends.
  • Hey Daggio

    The best solution is the System condition "Pick Nth instance". You tell it what object you are looking for, wich one you want (0-based) and here you go !

    Example capx

  • You may find everything you need in the CSV plugin documentation rexrainbow put here :)

  • I would use a hollow letter in a sprite font, like � attribued to a false white space. I would then write the whole text, replacing every letter that shouldn't be discovered by my � placeholder. The word warping will make it so the text will immediately take its final position (if the characters are of the same width at least) and I could "uncover" every letter one by one.

  • Can't do more than 106 here >< Nice first game !

  • Hey /

    First of all, your game has an awesome look.

    I had lots of fun, but had big FPS problems on a low config (2cores, 1.8Ghz, chrome, 2Go ram), not on a big one.

    Also, flying fish ? ^^ The whales were hilarious when flying over the boat :)

    Anyway, some little bugs said by others before, but with a little polish, it's a great game !

  • Yttermayn

    The tile count could be a problem yes. Not storing it in arrays, arrays are fast, but 4k instances can be laggy, depending on the system.

    If it was me, I would prepare my tile types and store it into the arrays, then build only a screen and a half (tiles covering the screen +50% of its size). As your movement are tilebased (or can be assimilated to), you can update your layout every movement, with something like this :

    • when move right, get the left column, move it to the right of the layout, change the frame of every of its tiles to what is said in the array (and maybe more than just changing frames, like spawning monsters, ...)
    • same for the other directions

    With a loading system like this, you could virtually have billions of tiles without lagging, as the object count won't go up and you would recycle most of the objects.

  • I personaly use rexrainbow's plugin : TMXimporter, and prepare my tile maps in TMX. Look at this thread, there are a lot of examples.

    Hope it helps !

Guizmus's avatar

Guizmus

Member since 26 Mar, 2013

None one is following Guizmus yet!

Trophy Case

  • 11-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies