smoke84's Forum Posts

  • It this the most helpful community in world? I think yes.

  • I made a simple array containing a list of names and levels exp, etc.. I want to be able to cycle through each entry in my array using left and right arrow buttons.

    For example clicking on the right button would populate some fields with the data stored in the array.

    NAME: JOE

    Level: 1

    Current XP: 0

    Clicking the right again goes to the next entry...

    NAME: BOB

    Level: 3

    Current XP: 10

    If I click the left button I can go back an entry:

    NAME: JOE

    Level: 1

    Current XP: 0

    I was displaying this data in a text file using myarray.(at) but im not clear on how to bring up the next entry in the array or the previous entry. Trying to avoid using global variables and im new to the array game. The idea is to flick through a roster like a deck of cards and display all the stats in a text.

    Any thoughts?

  • thank you for the advice guys. i tested using a text object and got 60fps so it must have just been the debug screen slowing me down, phew!

  • Does anyone know why I am getting very poor frame rates when I preview on mobile. I created a blank new project and hit preview and when I look at the debug on my galaxy note 3 I am only getting 15-17 frames per second. How accurate is this? am I doomed to have a laggy game if i port to android? Again I tested this with a blank project

  • Which sample is this referenced in?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I basically want a npc to move to a nearby town and capture it using the pathfinding behavior. The issue I am having is how can I tell this npc where the nearest is town is that is eligible for capture. When I use the find path command I can only input x and y coordinates for a single town but I would like to have a map where there is multiple towns. Any suggestions on how I can make this happen?

  • I tried saving to a slot at the end of level 1 but when I start level 2 all values are blank (name level hp etc)

    How can I save at end of level 1 and load values from that save in level 2?

  • How can I load specific values using web storage? Like my hero array has hero name level and hp values. How would I set and load this array on a new layout?

  • I am having an issue with keeping my information when loading a new layout. If I have my character reach level 6 and kill 3 monsters they display in a bestiary in layer 1, everything works. But Once I switch layouts everything has a value of 0. Im trying to make a RPG with different zones the player can visit

    Is there a simple way to keep all my information consistent between layouts without spamming global variables?

  • I put a create object line in the function and it fixed my issue! Thank you very much

  • I was working on this function for creating a object called beast box which is a 40x40 square image that gets repeated 40 times. I'm using a loop and a array with a width of 10 and a height of 4 to achieve this.

    When I call the function the first time I get the results I want. As seen in image 2.png

    I want to destroy the boxes and recreate them each time the menu is opened. So I had the menu destroy the beast_box object when closed.

    The problem is when I open the menu a second time the boxes are created and stacked on top of each other 40 times. (see 3.png All in the top left corner instead of being spaced out in neat rows. What am I doing wrong here?

  • I was considering that but was wondering how I would keep the stats organized like mob1 hp = 10, mob 2hp = 30, etc

  • codah Do you have another method to try?

  • 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..