dsminor's Recent Forum Activity

  • Oh an array is just a list, grid or cube of values nothing special about it.

    For a inventory an 2D array is just a grid with an x and an y coordinate, like a sheet of quad paper.

    And every quad would be an inventory slot to store something in.

    Oh ok so i just completed the game

    Still i dont get any damage will you get hit if the answer is wrong or you are to slow?

    Oh with logic i just mean a system to do it, english isent my native language, maybe i have a different understanding of the term.

    In philosophy class we used the term "logic" as a system of arguments which follow a certain order to archiv something, i guess i stuck with this definition.

    However i just meant you need to figure out a system for that.

  • You will totaly need arrays for that!

    Also the inventory you want to have is not the easiest with the different pages and all that stuff.

    You could use a 3D Array or multiply 2D Arrays for that.

    (or maybe put all pages in one 2D array but thats kinda chaotic)

    Also a logic for sorting items and equiping.

    However i think there are some pretty good inventory templates in the scirra shop.

    If you cant make your own just use on of those.

    If you like to try by yourself start with "binding" every slot in your inventory to an arrayslot.

    So you will be able to load the content of the slot depending on the array.

    So the itemslot ist just a graphical representation of the arrayslot.

    I tried the game. I like it but i got a bug where i gave the right answer and he just dident attack.

    Also is it possible to lose in this game? Is there a time limit?

  • If you want to have more than one pig you need to be able to tell the system which pig is actualy flying and which is at the catapult.

    You will need to reset the "isaiming" to 1 after the shoot but without affecting the first pig.

    Than you can just spawn a new pig at the catapultsblock position.

  • i used the windows snipping tool to make a screenshot.

    Then you need to upload the image somewhere and put the link in the forum.

  • Sure but if your game is different to the template i need to consider this.

  • Hmm thats tricky because the camera is set to follow the pig.

    SO you cant see the catapult after shooting the pig.

    But if you focus the camera on the catapult you cant see the pig flying anymore.

  • immediatly after the first pig so the first pig is still flying?

  • This will restart the game when the pig isent moving anymore.

    OR do you want just another pig to fire but the level shouldent be reset?

  • Looks fine.

    With the counter variable you could even bind more than 1 enemy to a spawner.

    There are some small things that shouldent be necessary like storing the spawnersUID in itself or the double loop but who cares if it works.

  • Ok it just needs some tweaking.

    In the first event you dont pick a specific spawner so construct picks all of them.

    So it will set ALL spawners to "enemyingame" true.

    In the destroyed event you just set 1 spawner to "enemyingame" =false.

    Thats why just one works.

    You need to tell the event on which spawner the enemy has spawned.

    The second problem is a bit more tricky.

    You need to tell the spawner that it isent on screen to "reload" it.

    At least thats what i understand you would like to have.

    So i guess you will need another variable calles "readytospawn" or something like that.

    If the spawner spawns "readytospawn" set to false.

    If the spawner is NOT on screen set "readytospawn" to true.

    if "readytospawn" =true and "enemyingame" = false and spawner on screen then spawn new enemy.

  • You will need to "bind" the enemy to the spawner.

    Spawner gets a booleon variable called "enemy_in_game"

    The enemy gets a variable called "spawnerUID"

    On create the enemy sets "spawnerUID" to the spawners UID and the spawner sets "enemy in game" to true

    On enemy destroy pick the spawner with the "spawnersUID" and set "enemy in game" to false.

    if "enemy in game" is false and the spawner comes onto screen--->spawn enemy

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, one variable for the language is enought the value would be german, english or italien.

    And yes i think you would need an array with alle the text for each language and always load the

    one you need, at least thats how i would do it.

    But there will be some problems for example the same sentence in german is offen longer than in english.

    So your textobject needs to be bigger too, or your font size smaller.

    Example:

    Shoot all enemys

    Erschieße alle Feinde

    you need a score of at least 500

    du benötigst mindestens 500 Punkte

    use left mouse to fire

    benutze die linke Maustaste um zu feuern

dsminor's avatar

dsminor

Member since 25 Jul, 2015

None one is following dsminor yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies