Jikaz's Recent Forum Activity

  • Hello !

    I searched for information about this type of things but I found nothing, excuse me if I missed something

    I've got a family called Monster with some instance variables for them like : hp, lvl, damage, speed etc.

    As I have a lot of different monsters and different variables, I want to manage their attributes with an array (using the plugin from rex, csv2array) and I'm trying to avoid a lot of events so I'm wondering if there is any simple solution using the family, but I don' know how to do this properly.

    So, I'm using a loop in the array, only on the column (X=0) because in this column I store the ID of the monster.

    And I compare every value of this column. And I'm trying to apply modifications of the monster of this row using the array.

    For example, If array.At(0;0) value = 1, it means that on this row, I have the data for the monster 1. So I can do Monster1.HP = array.At(1;0), Monster1.damage = array.At(2;0) etc. etc.

    But as I have a lot of monster and a lot of variables to change, how can I use families to simplify the process? Maybe it's something about picking but I'm a bit confuse about this. I've read some tutorials about this but I'm still struggling with this.

    I expect to have maybe something like this :

    Loop in the array

    -if curX=0

    --if value = 0

    ---function SetAttributes ( param Monster1,param curY)

    --if value = 1

    ---function SetAttributes ( param Monster2,param curY)

    --if value = 2

    ---function SetAttributes ( param Monster3,param curY)

    and of course with the function :

    OnCall (SetAttributes)

    -ID = function.param(0)

    -Row = function.param(1)

    -pick in familyMonster, function.param(0)

    --familyMonster.HP = array.At(1,Row)

    --familyMonster.damage = array.At(2,Row)

    --etc.

    But I'm not sure how to manage calling function with the right monster, and the picking in the function...

    I hope it's clear and somebody can give me a clue

    Thank you !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for the answer,

    I'm using this to build a dynamic item list. Each item has his own number, name, price, stats etc.

    And I want to have a function to be able to add these items in the list, anywhere in the game.

    But, yes, as you say Newt, there is probably another better solution. I think about this more.

    Thank you !

  • Problem Description

    The window of the call function is not resizable. I can't add more than 16 parameters because the "add parameter" is hidden if they are too many. Is it possible to make the window's size resizable?

    Maybe it's because of my resolution, I have a little screen.

    Construct 2 Version ID

    I'm using the latest version.

    Thanks

  • Hi,

    I want to show you my project to have some feedbacks and comments.

    Because it's the very beginin I can't show you a lot of stuff because I want to be sure about the gameplay and features before.

    I will show you some screen before explanation because I know you will look at the pics before you start reading ^^

    For now, it's just a prototype. The UI and the design is not final at all, it's just to test the gameplay.

    The idea is :

    • You have a character (that you will be able de customize at the end, sex, hairs, colors..)
    • The Score is equal of the amount of gold you have
    • To have gold, you need to explore dungeons and cave, beat some creatures and steal some treasures.
    • There will be a lot of type of dungeons. But each dungeon will be generated. I mean that the enemys inside, their positions, the positions of the chests and traps will be random (but with ratio)
    • The dungeons will be harder and harder and you can't explore all the dungeons if you don't have some special items
    • The battle systeme is my main problem. I not sure what is the best, but I will explain my point of view later.
    • Each drop will be unique. Objects have stats. (I don't know how to do this for now. I will need some advice for this)
    • There will be a shop to buy or sell stuff as well.

    Extra ideas :

    • Maybe, we will have the possibility to invest our money in a little village. To make it grow and earn more money in the future.
    • I want some unique choice, very unique. To make the game different for each player and change the character's job.
    • Also, we can think about a dungeon builder, like for the game The Mighty Quest for Epic Loot. You will have your own dungeon and people will be able to test it if they have the right level.
    • We can think about a online market as well.
    • And more stuff.

    The Fight System

    For now it's something that I don't really like at the end. I though it can be good be I don't really like it. So tell me if you have any ideas.

    The character moves automatically. You have 3 buttons. One to use the weapon, one to use a spell, and one to use the shield. If you press on any button. The character stops, attacks, uses the spell or the shield, then moves on.

    The spell depends of your equipment and can be different. Like a simple fireball, a heal, a stun etc etc, there is a lot of possibility.

    Each action has a cooldown which depends of the stats and weapon/spell.

    The enemys move to the left automatically as well. If you don't press the attack button at the right time, you will be hurt by them, and you will jump back a bit. Be careful of the attack cooldown. If you touch the monster with your attack, it will jump back too. Some monster will move very fast, some other will have some range attack etc.

    At the end of every dungeon, there is a boss. The problem is that the boss doesn't move. He can't jump back. So what I made is that every time the attack sucess, the hero jumps back and so on.

    I'm not very happy with this.

    Why did I make this ?

    I wanted the player to have some dynamic control, and not just a strategy game, before the dungeon. Maybe I don't need to jump back stuff. Maybe I just need the spell. I don't know.

    I want to know your point of view about this.

    Maybe it's not clear. I will post a demo soon. But a lot is not implemented yet. The unique loot for example.

    I'm not sure how to manage unique items. For now I'm using a database of object. So each items have the same stats. But I want that when you loot something, The item is randomly picked in the object list, then randomly tweaked (more or less powerfull) what is the best solution for this?

    So there is no equipment system, just a +1 button to level up and debug.

    There is no spell as well.

    Thanks!

    (ps: Yes, English is not my main language..)

Jikaz's avatar

Jikaz

Member since 21 Dec, 2013

Twitter
Jikaz has 1 followers

Trophy Case

  • 10-Year Club
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies