Allardje's Forum Posts

  • Hi Yall,

    Thanks for the awnsers.

    I will take a look into the long story.

    As you say, i indeed not taking the whole wardrobe..

    So this makes my question more obvious.. Since memory usage going up once i insert a sprite. Even when i'm not placing it in game the memory usage rises.

    So this makes my question complete:

    "Does memory usage slow down the game EVEN if you don't add all the sprites in-game at once."

    I could have a character which can only run left and right, yet with 100 animation frames that are not used. Yet my memory usage will be 100MB.

    Does this impact my game itself?

    Ofcourse i can try it out but my PC runs it smooth as always, yet i can only test on a Note 2 which is pretty smooth also..

  • Hi Je Fawk,

    Thanks for your reply.

    Yes i am always thinking in the memory save way but non-the-less some things can't be changed.. I have one sprite with all other clothes as animation frames ( complete suits, no lose parts ).

    Yet i indeed only look at the counter on the status bar.

    I guess this isn't probably precisely what it will be once exported etc..

    Yet i want to add more than 20-30 different sprites ( frames ) which takes 0.8 mb each what will result in about 20MB..

    I'm just not sure how seriously i should take that memory usage in the bottom status bar..

  • Hi all!

    I'm working on a fun game. It's big and advanced..

    Now.. i always take a look at the memory usage with every step i do.

    Yet i want to create a character "wardrobe" where you can "tune" your character with some fun suits and stuff..

    As you can image, every single piece of clothes ( sprite ) i put in my memory limit extends.

    Every single suit(sprite) i put in takes up 0.8MB memory limit each..

    Is there any way i can keep my Memory Limit low but my sprites high !?

    Thanks in advance!

  • Hi all!

    I got a question and im not pretty sure how to do it.

    I need to make a object go trough a other object in a random specific path.

    Ok in text i can never get it clear so here is a picture:

    The red dot is object 1. Always at the same location located in the center.

    I need the blue object to kinda get warped into it and get back. Just like gravity. The thing is i have no clue how to do this.

    The yellow lines are example paths that the blue object can take.

    So to make it even a little harder, the blue object has to get a random speed once it passes the red object.

    This means that every "warp" will have a different outcome.

    You can take this example as the world. Once you go up you will go down but this time there is nothing to stop you.

    So as real life example:

    You jump up into the air for 1KM height.

    You fall down and when you get that 1KM back you wont be splashed to earth but you will get shoot out the other half of the world where you, for example, jump up another 2KM.

    I hope i made myself clear. I Really could use some help on this one!

    Thanks in advance!

    After a while i thought it would be really hard to understand my explanation.

    So, try 2.

    You can see it as a invisible bungee rope between the blue and the red object, but with more speed.

    Once it has fallen down the object has to bungee back up, in any direction as long as it passes the red object.

    This has to continue. The room has no bottom and no top, it has to be like a circle with gravity going in a shockwave out.

  • Ok cool!

    I just gonna try it out i guess!

    Problem is im creating for Android so i have to take care of every memory issue.

    Yet, im afraid i can only find out with trying.

    Thnx!

  • Maybe i need to use polygons than.

    One more question, does it really harm to have alot of polygon points?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes me 2.

    I think i have a better solution for the first part.

    My idea is to create different pieces that all connect to each other ( height and stuff ).

    Than place a random one so my levels will always be different Though i need that first part the most.

    Thanks anyhoe!

  • Hi all!

    I'm really bugged with this question.

    I want to make a platform game.

    The character will always run on the ground and will have to walk on the hills that are in.

    At this very moment all i can do it put in 100th's of collision polygons.. But i guess thats not the way to do it right? This will suck up all memory since i get a warning at placing 9 already?

    This is what i mean:

    + The red dots is the way it has to walk. So once on a hill it will actually follow the hill.

    The character can jump. So the pieces in the air has to do the same.

    In short..

    All i need is letting Construct 2 know that the whole image is it's shape and not the polygon stuff.

    Thanks in advance!

    And now as i'm at this topic.

    The level has to be very very long.. I can't just make it a image right?

  • Hi all,

    I will make it short.

    I have a AJAX action and get a result like: 1, 43, 492, lalala, example, 1455

    Or atleast, thats what i can do. I can make the , a | or whatever thats not the problem.

    All i need to know is how to get all these different results into seperate results and not in 1 sentence.

    So: 1, 43, 492

    Should become:

    Level = 1

    Experience = 43

    Coins = 492

    Let me know if my example is clear and any one has a solution!

    Thanks in advance!

  • Hey guys!

    Now i think it's time to make my games more intresting with some nice features.

    What i am thinking about is a friend system! Based on a database and php.

    Games are created for Android.

    Now, i am going to think out loud and write down my way of doing it. All information and or suggestions are welcome!

    So.. The idea is simple. Every player creates a username that is writting into a mysql database with the username and a id.

    Now. To make a friend request you simply type in the name and press add.

    Now somehow the id of that player has to be written into a webstorage.

    This way you could also make a online/offline status.

    Once you go to your friendpage AJAX will check on the user id if they are online.

    This will be done by setting "online" to 1 every 20 seconds by AJAX. A cron on the server will set "online" to 0 every 10 minutes of all users.

    This way you get a pretty accurate online/offline system with 20 seconds wrong indications maximum.

    This way you can see if your just added friend is online or offline.

    Now. The problem is i have no clue how to do this for mulitple friends.

    One friend would be possible the way i explained above. You can just name your webstorage "friendID".

    Now, with multiple friends this way is not possible.

    Or the webstorage has to be written as a array or something but i would have no clue how that works.

    Again, all suggestions are welcome!

    Thanks in advance!

  • Hi,

    I actually have the same problem.

    I tried your solution Rabenmutter but it is not working. My buttons simply just stop working .

    I really need a solution for this since i create for android and i want to make my custom "Messages" which always overlays on the objects behind it.

    Please some help! Thanks in advance!

  • Hi,

    Thanks i did look at it but somehow i forget to use the background for the bar..

    No i did have the background but ye.. Background.. Not the object

    Got it to work now!

    It is indeed a empty progress bar and the filler.

    Than the math i did in my previous post:

    27/144*100 But than as

    Filler > Set width:

    (progress/totallevels)*progressbackground.Width

    Thanks!!

  • So.. I'm at this point again and indeed i am thinking of setting the width to the % of progress.

    Now i need the right line to reach this.

    I am not getting my code to work.

    What i need to do is:

    Current progress amount / amount of total levels * 100

    So lets say if i got 144 levels and i'm at level 27 it would be:

    27/144*100 = 18.75%

    Than i set the width of my object to the percentage which in this case would be 18(.75)%

    Now as action i use:

    On start of layout : Set global value

    Than i got this problem where my code doens't want to work..

    I need to do the math in one line with 2 global variables.. I just dont now how to get my line working.

    What it has to be:

    GlobalVariable1 "dividing by" GlobalVariable2 "times" 100

    Can any one tell me how to get that line to work in my Set value as action?

    Also my set width would not work with: 20%, 12% etc..?

    Thanks in advance!

  • Hi all,

    I've got to admit.. I'm a d*ck again....

    I see now that i do not know Construct 2 very well..

    I see that you can set a Initial Frame.. Thats actually all i need...

    Sorry for my dumb mistake and for your time.

    Though thanks for all the help!

  • Piuu thanks!

    I think your script works once you change the Variable1 = 3 to Variable 1 = self.Variable1!

    Let me try after my lunch!

    Will post back, thanks!