Need Help with RPG engine

Talk about making games.

Need Help with RPG engine

Postby Hblade » Fri Mar 11, 2011 9:33 pm

I'll be willing to share the dropbox folder with anyone who wants to help, and MAN i need help on it >.> I can do most of it but when it comes to saving and loading tile positions, I can't do it. So if anybody knows about this, (DST, Skydereign, Game A Gogo, Etc), please let me know and help out thanks :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby lcl » Fri Mar 11, 2011 10:54 pm

I could help you. :)
What's the thing with tile positions saving and loading?
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Need Help with RPG engine

Postby Hblade » Fri Mar 11, 2011 11:04 pm

The tiles, are cloned actors and I've always had problems using arrays for they're locations because its based on Cloneindex and what happens if you delete one? And what happens if you have a bunch on there but want to load another file without having to reset the EXE? The variables dont get reset the tiles get distored and sometimes crashes the EXE O-o

Basiclaly there are 3 array variables
TX (Tile X), an array of 20000 for 20000 tiles
TX (Tile Y), an array of 20000 for 20000 tiles
TANIM (Tile Animation), an array of 20000 for 20000 tiles

However, loading they're positions and animation frames, (animpos, since its all in 1 animation), is complicated.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby lcl » Sat Mar 12, 2011 12:41 am

ahh.. those cloneindex problems..
it's way hard to help without the files.. xD
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Need Help with RPG engine

Postby Hblade » Sat Mar 12, 2011 1:05 am

hehe, yeah.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby Game A Gogo » Sat Mar 12, 2011 1:19 am

The best way to handle cloned actors for a tile editor is having an actor creating the clones, that way you are sure about the cloneindexes being alright and that you won't mess with your clones!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby Hblade » Sat Mar 12, 2011 1:53 am

Gag, would you mind taking the ged file and finishing up the Level editor? and explain to me how to load the level in an actual game too.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby Game A Gogo » Sat Mar 12, 2011 2:49 am

I might, I've been busy lately, not with Space Traveler either
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby Hblade » Sat Mar 12, 2011 3:06 am

Oh, alrighty.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby lcl » Tue Apr 05, 2011 9:47 pm

Hey Hblade, if you still need help with this, I would like to help. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Need Help with RPG engine

Postby Hblade » Thu Apr 07, 2011 2:42 am

kk :D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby lcl » Fri Apr 08, 2011 5:22 am

Hblade wrote:The tiles, are cloned actors and I've always had problems using arrays for they're locations because its based on Cloneindex and what happens if you delete one? And what happens if you have a bunch on there but want to load another file without having to reset the EXE? The variables dont get reset the tiles get distored and sometimes crashes the EXE O-o

You don't have to reset the exe, just do this:
Code: Select all
void reset()
{
    int i;

    DestroyActor("tiles"); //That destroys all the tiles.
   
    for(i = 0; i < 20000; i ++) //That resets all the variables.
    {
        TX[i] = NULL;
        TY[i] = NULL;
        TANIM[i] = NULL;
    }
}

And then, call the function somewhere:
Code: Select all
reset();

:)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Need Help with RPG engine

Postby Hblade » Sat Apr 09, 2011 4:06 pm

ty
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need Help with RPG engine

Postby lcl » Sat Apr 09, 2011 6:45 pm

Did it help you?
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Need Help with RPG engine

Postby Hblade » Sun Apr 10, 2011 4:36 pm

Actually yes it did :D though I havent been working on this specific engine in a while, besides the people programming it are MUCH smarter than me at this :P GAG and A.. Uh.. I forget his username xD
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Next

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest