smoke84's Recent Forum Activity

  • codah Do you have another method to try?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • all this time I need a plugin! ahh! thankyou

  • Hello Everyone

    I am using an array to create a grid of squares. Each square in the grid is assigned a instance variable: box_id. I also have a family of 3 monsters which have instance variables: mob_id.

    My Box_ID's on the grid look like:

    0, 5, 10, 15, 20

    1, 6, 11, 16, 21

    2, 7, 12, 17, 22

    3, 8, 13, 18, 23

    4, 9, 14, 19, 24

    My Mob_ID's

    monster1... mob_id = 0

    monster2... mob_id = 1

    monster3... mob_id = 2

    Right now when I hit B my grid is created but it is empty.

    I would like to match box_id to mob_id and spawn a monster in the associated square.

    I have searched the forums and tried many things but I can't seem to figure out how to do this. How can I reference a specific family member and tie it to my grid?

    The end result should show 3 monsters on my grid occupying the squares marked 0 , 1 and 2

    Any suggestions? I have been stuck on this for hours..

  • I've included my capx. I was using instances of the array_monsters cause I have multiple stats for each monster and I don't know of any other way to store them in a single array for multiple monsters

  • Hello Everyone!

    I working on making a bestiary in my game. The idea is to push a button and a new layer becomes visible and gets populated with monsters you have obtained.

    On this new layer I have 5 boxes called beast box. each has a instance variable called box_id

    All my monsters have an instance variable called mob_id and are part of a family called mob_family. I also have an array for the monsters called array_monsters where I store the mob_id at position (0,1) for each monster. (3 monsters so far so 3 arrays are created)

    What I want to happen is check each monster box id and match it to the correct monsters array.at(0,1) and spawn the appropriate monster in the box. (Box ids start at 0,1,2,3,...) (Monster ids start at 0,1,2,3,...) as well So If box id = 0 & mob_id = 0 spawn a badguy in first square, etc.

    What happens now is I press 'B' My layer shows up, and the first 3 boxes get populated with random monsters from the family instead of my intended order of 0,1,2 (bad guy, slime, goblin)

  • I was wondering if the following is possible.

    I have an array called mob_array

    It has 3 instance variables, mob_id, name, hp

    I also have a family called mob_family

    It also has 3 instance variables, mob_id, name, hp

    I then created 3 monsters within the family and gave them all different values

    monster 1: mob_id = 1, name = bad guy, hp = 5

    monster 2: mob_id = 2 name = slime, hp = 10

    monster 3: mob_id = 3 name = goblin, hp = 15

    Each member is a sprite with its own animations.

    Any idea how I can store each mob into my array properly?

    I followed the tutorial for setting up a basic experience system using an array at: https://www.scirra.com/tutorials/720/st ... nce-system and have modified it to keep all my hero stats in one table. But when it comes to adding monsters to a new array like this I dont know where to start.

    Thanks

  • Everything is working as intended thanks everyone.

  • still having trouble setting this up.

  • I could but it does not solve my issue.

  • Hello everyone!

    I have been playing around with health bars and recently started using families. The family is called Mob_Family.

    That family has two variables. (mob_health) and (mob_maxhealth)I am having trouble with damaging foes.

    I have 4 statically placed mobs. Each mob has a different value for mob_health.

    When I test play, All 4 mobs get a health bar above them but when I strike the first mob, all 4 mobs take damage and every health bar updates as a result. And the enemy with the lowest hp will be destroyed even if i don't hit him. I don't know what I can do to fix this issue. Any suggestions? Thanks

    PS: I was hoping to avoid using containers

  • I have a side scrolling game which has a hero on screen which moves left or right based on X position of touch.x vs hero.x

    The issue I have is the player only moves when touch is active. I would like to touch once and move to destination without using pathfinding. Any suggestions?

  • Thank you. instance variables is what was needed.

smoke84's avatar

smoke84

Member since 20 Jan, 2012

None one is following smoke84 yet!

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies