Toya Aponesto's Recent Forum Activity

  • Oh I see. Thanks I'll try it and see how it goes. BTW, how would I make an NPC randomly circle around a layout? I mean.... simply randomly go around it.... like a zombie

  • I'm trying to make a recursive way to monitor an object's position and constantly save in in an INI. But I don't want to do every code for every object. I can't seem to explain it well, so I'll post a psuedo code:

    Normal Code for Construct:

    -[Object Name].x

    -[Object Name].y

    My Code:

    -[Family Name].x

    -[Family Name].y

    Will that work? I placed objects who's position needed to be recorded in a family. SO I'm thinking that if I just use a family, they would be all be applied to it.

    Some questions on INI:

    1. How do I get values from INI into an object's private variables which will then be used to place that object and vice versa.

  • Yeah probably, but I need the layout to be big since I need NPCs to travel between maps. Anyway, is there a way for it to lag less?

  • Not really, the map is made up of small objects, well the "ground" part of the map was once actually one big image, but i split it into 29 small parts and just sticked them together in Construct.

    Well heres my cap: http://www.mediafire.com/?hywqnuy2dli

  • Its big because of........the images(map objects). This RPG will most likely be big because of images.

  • So I've made the first map of my RPG made in construct. Its already in .EXE by the way.

    Link: http://www.mediafire.com/?ilcwihnmmze

    I kinda lags in my PC, kindly comment on it. If you encounter any probs, pls uhh help me improve it.

    Anyway, all you can do in that game is simply walk around like a zombie in that ghost town.

  • I see. Well, I have not mingled with waypoints before. Guess this is a start. Anyway, what values are placed in waypoints? X and Y? I'm not in my PC right now so I can't check it out for myself. And can waypoint be included in a hash table?

    I mean what if an NPC goes to remember a waypoint, and the player saves the game and quits. Will the waypoint still be there when the player plays again?

    Oh wait, I have a follow up question. What will be better?

    1. Make a huge map(4000x2000?) in errr mspaint and import it in Construct and just put colission boxes in places where its suppose to be solid.

    2. Make the same map in mspaint but break it down into small objects and import it one by one in Construct and then rebuild the map there.

    So which one? I have been doing number 1 by the way.

  • How would an object with custom movement as its behavior be able to auto search an object that is found in the same layout? Like if an NPC would automatically know where the bathroom is if it needed to have its poo poo time. Or maybe it will randomly circle the layout until it finds the object its looking for.

    I'm guessing Line of Sight might help with this....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmmm... But I will be having like around 50 or so NPCs in one layout since that layout will more likely be a town or city map. Would that mean 50+ global variables?

  • Alright, so I'm trying to come up with my own algorithm for constantly obtaining the X and Y positions of my NPCs using private variables. But before I would put it all into events, I need to ask if is possible.

    Since there will be a time where the player will leave the layout, and would eventually come back. What I need is for the game to record each NPCs current X and Y pos the moment the player left the layout, and when he gets back, it will just load it up and will cause the NPCs to be recreated at the same positions they were when the player left the layout.

    So how would I do that?

    Another is how do I play a transition that will only cause the player to transfer to a different position, not layout? I was thinking that if the player goes out of the house, there will be a small transition, like the circle and will cause the screen to go black, then will fade and at the moment, the player will already be outside of the house.

    How do I do that? Helps will be much appreciated.

  • If ever I would go with the big layout with lots different maps in it route, I would assume some lag in it, my uhh desired height and width for the layout would probably be... 51200x51200? I tried it, and it was alright at first, but I'm guess as I put more maps or objects in it, its going to lag slowly and slowly.

    Anyway, is there a way to load every objects in that layout before showing everything to the player? You know... loading screens?

    And assuming a 52100x52100 layout full of objects all moving and doing their own stuff synchronizingly, how much RAM would you recommend? Since I will be putting this in our "System Requirements"

  • So the shrink/zoom is a bad idea. Anyway, wouldn't it affect the NPCs if they entered a part of the layout on which the player is not literally on, since at that time, the objects would not have been created since they're not on screen?

    Would it decrease the usage of memory or lag if objects were invisible until either an NPC or the player is not in that part of the screen? And that it becomes invisible again if theres no NPC or player near by.

Toya Aponesto's avatar

Toya Aponesto

Member since 12 Oct, 2009

Twitter
Toya Aponesto has 1 followers

Trophy Case

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

Progress

17/44
How to earn trophies