Search results

  1. Bruce

    Out of Memory - Title, Menu, & Character Selection Screens

    I disabled them and fixed the array(x), and it's alot better now, but it eventually overloads the memory regardless. something is leaking the memory, maybe the screen animations? But still if I spawn the screen animations and destroy them with killentity then free them from the globalvar or...
  2. Bruce

    Out of Memory - Title, Menu, & Character Selection Screens

    I will try that. lol I need to work on better abbreviations then. Not yet because I am not home until later tonight. Haven't said that, I think I've found part of the problem in the SetupArrayLists() function. Take a look at the comments where I wrote all caps below. I added more items to the...
  3. Bruce

    Out of Memory - Title, Menu, & Character Selection Screens

    So after you unload them, then load them again with these? setglobalvar("borders", loadsprite("data/sprites/borders.png")); setglobalvar("charHud", loadsprite("data/sprites/charhud.png")); That's what I was trying to do, but with an array instead. Maybe I didn't setup or free the array...
  4. Bruce

    Out of Memory - Title, Menu, & Character Selection Screens

    If you take a look at the function ClearGlobalArrays(), there are free() function inside. I know it's not a good naming, so I'll rename it. If I understand it correctly, if I don't unload the sprites and everytime I use drawsprite(), it would add more memory. Basically, it adds 50 times more...
  5. Bruce

    Out of Memory - Title, Menu, & Character Selection Screens

    Hello everyone, I've posted my question regarding to this issue in another topic, but I think it is better for me to create a topic and post all my code. I started learning how to add backgrounds and animations with arraylist to the title, menu, and character selection screens. If I just start...
  6. Bruce

    Help reduce memory usage

    Yes, there is counter to make sure the animation only triggers once and continues looping. I have found that I have functions ClearGlobalvarArrays(); InitializeGlobalArrays(); If I remove these two functions off the in character selection screen, then it can run 40-50 times more. Somehow these 2...
  7. Bruce

    Help reduce memory usage

    I am having issues with out of memory. I am learning how to add animation backgrounds to the title and character selection screens. When I start game, there is no issue, but if I loop the title screen then char selection screen back and forth for like 20 times, then it runs out of memory. I...
  8. Bruce

    Solved How to setup #define values the right way?

    I am seeing a bunch of go_bys using them, and I like these shortcuts because of less messy in the coding. However, your advises are priceless, so I will remove all these defines of my game. Since you have not mentioned or explained which method is better, I assume, all methods are the same as...
  9. Bruce

    Solved How to setup #define values the right way?

    Hello everyone, I am seeing different methods to set it up from go_bys, and I always have questions about them in my mind. I do know they all work, but it's best for me to learn the right way at the beginning rather than copy and paste the code. Therefore, I have 4 methods below, can someone...
  10. Bruce

    help with array

    I am learning about array right now, and I seem to have difficulties with it. I have the follow code in the updated.c: void oncreate(){ setglobalvar("LevelFirstStart", 1); SetupArrayLists(); } if(SYS_In_Level) { int LevelFirstStart = getglobalvar("LevelFirstStart")...
  11. Bruce

    Animated screens - the easy way.

    I had this code in the title screen: { void counter = getlocalvar("counter"); void vSpawn; while(counter!=1) { void subent; loadmodel("bgfx"); // name of the entity to be loaded clearspawnentry(); // clean the spawn...
  12. Bruce

    Animated screens - the easy way.

    What I meant was I want the spawned entity to disappear completely in the intro, then reappears whenever the engine is back to the title screen again. Basically, it disappears when the engine runs the intro.txt, then appears during the title screen, and repeat.. I had this in the intro script...
  13. Bruce

    Animated screens - the easy way.

    I just started applying this script to my updated.c for the title screen animation, but somehow it keeps on adding an entity on the screen everytime the engine goes from the intro to the title screen. Is there something missing such as killentity with globalvar? I added the globalvar for spawned...
  14. Bruce

    Solved What are maxindexedvars, maxscriptvars, maxentityvars?

    Hello everyone, Sorry for the noob questions. "maxscriptvars", - gets maximum number of variables in each script which is accessible by index. "maxindexedvars", - gets maximum number of global variables which is accessible by index. "maxentityvars", - gets maximum number of variables in each...
  15. Bruce

    ChronoCrash Modders Tools

    I don't like the new style of attack either because it's taking too much space although it's easier read and understand. Please keep the old style or have an on/off option, thank you
  16. Bruce

    ChronoCrash Modders Tools

    Thank you so much buddy. I can not thank you enough for the most useful tools! Because of your tools, now I don't need to use Gimp for offsets, attackbox, and bbox anymore, etc..!
  17. Bruce

    Offset issue, please help, thank you

    I don't work on sprites at work because people can see it lol. I do some coding during down time, but not alot of coding at work though - just some here and there
  18. Bruce

    Offset issue, please help, thank you

    I will send them to you later tonight as I am at work right now. I can't spend too much with this at work or else I will be fired lol. How do I send them to you privately because many sprites per skill? Thank you so much
  19. Bruce

    Offset issue, please help, thank you

    I can't do the skydance skill from the ground up as I have 3 skills connecting each other: EX wall splatter, Uppercut then cancel into another kills or Skydance while he is in the air. Once I finish Dante, I will also capture his brother's sprites (Vergil) for team up and assist skills. I...
Back
Top Bottom