rpg textNumber probs again LOL

Game Editor comments and discussion.

rpg textNumber probs again LOL

Postby J Slayer67 » Wed Jun 13, 2007 6:45 pm

hi...i hate to bug u guys again with my rpg but already :cry: another problem came up. when my charecter has enough xp to become lvl 3, the xp textNum. resets but the other textNumbers stay the same here (again) is my ged file p[lease help if u can :) thx
Attachments
rpg.zip
(94.9 KiB) Downloaded 126 times
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby Oman » Wed Jun 13, 2007 10:44 pm

Sry dude... but u forgot to put ur .ttf file in the data folder..
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby J Slayer67 » Thu Jun 14, 2007 2:40 pm

wat one?
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby J Slayer67 » Thu Jun 14, 2007 2:48 pm

here an rpgtestg is the file that I have the lvl 3 bug the other doesn't have the codes for lvl 3 once again please help if possible
Attachments
rpg.zip
(96.19 KiB) Downloaded 109 times
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby Sgt. Sparky » Thu Jun 14, 2007 2:50 pm

there is not data folder and no font. :(
(I will see what I can do, I know a way around this.)
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Sgt. Sparky » Thu Jun 14, 2007 2:58 pm

Code: Select all
if (xp.textNumber==1000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber=02;
}

is the code you must use instead of,
Code: Select all
if (xp.textNumber=xp.textNumber=1000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=xp.textNumber=0000;
    lvl.textNumber=lvl.textNumber=02;
}

:D
you must use == for if.
also:
you can't do so and so.textnumber = soandso.textNumber = 0; :(
(so and so.textNumber = 0; is correct. :D)
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby J Slayer67 » Thu Jun 14, 2007 3:23 pm

wat code do i use? did u look at rpgtestg or just rpgtest?
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby Sgt. Sparky » Thu Jun 14, 2007 3:28 pm

just rpg test,
I suspected rpg testG has the same problem.


(I'm happy :D if I have helped, sad :( if I have not)

if you need further help let me know. :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby J Slayer67 » Thu Jun 14, 2007 3:35 pm

ok i tried it and the same thing happened.(IM NOT MAD AT U BUT THIS BUG *caps again aarrgghh!!!*) :evil: :cry: :cry: it's so annoying! >:-o<scream!!!> the next lvl text number didn't go up to 2000! :cry: and the lvl text number didn't go up to 3 AAAAARRRRRGGGGGHHHHH!!!!!!!!!!
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Eassy

Postby kyensoftware » Fri Jun 15, 2007 7:17 am

Easy.
Code: Select all
if (yourlevel.textNumber == 1)
{
if (xp.textNumber==1000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 2;
}
}
if (yourlevel.textNumber == 2)
if (xp.textNumber==2000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 3;
}
}
// And so on.

EDIT: Cleaner code, speeds up around 2 fpm (frames per minute) which is good for shooters.
Code: Select all
// Put the ones that make you higher levels than 3 here!
if (yourlevel.textNumber == 1)
if (xp.textNumber==2000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 2;
}
}
if (yourlevel.textNumber == 2)
if (xp.textNumber==2000)
{
    nl.textNumber=nl.textNumber=1500;
    xp.textNumber=0000;
    lvl.textNumber= 3;
}
}
// And so on.

:D
Games for Windows, Linux, and PPC
Bin dosnt stand for "Binary";
it stands for Bin.
You know, where the junk goes...
User avatar
kyensoftware
 
Posts: 198
Joined: Thu Oct 26, 2006 7:49 am
Score: 5 Give a positive score

Postby J Slayer67 » Fri Jun 15, 2007 12:49 pm

ok i tried it but it said error line 16: expected ; so i put on there just to see wat would happen. then it said
Code: Select all
error line 16: expected ;
                                                             error line 17: expected ;

i don't know what to do :?:
Zelda junkie!!
A
AA
User avatar
J Slayer67
 
Posts: 44
Joined: Fri Jun 08, 2007 8:40 pm
Score: 1 Give a positive score

Postby kyensoftware » Sat Jun 16, 2007 11:35 am

Ooops!
forgot that. you have to put a ; on every line other than an if statement.
cant type the code again on this stoopid nintendo ds browser!
Games for Windows, Linux, and PPC
Bin dosnt stand for "Binary";
it stands for Bin.
You know, where the junk goes...
User avatar
kyensoftware
 
Posts: 198
Joined: Thu Oct 26, 2006 7:49 am
Score: 5 Give a positive score

Re: rpg textNumber probs again LOL

Postby thunderios » Sat Mar 01, 2008 3:18 pm

I got kind of the same problem,
When I got testsplee (which is money XD ) >= to 20 I can buy something and I lose 20 testsplee
But now when I buy it it becomes -15, and when I earn 20 money I get 4...
Code: Select all
if(testsplee.textNumber == testsplee.textNumber >= 0020);
{
Speed = Speed = 5;
    CreateActor("Buydisable", "House1", "skateboard.x", "skateboard.x", 0, 0, false);
    ChangeZDepth("Buydisable", .99);
testsplee.textNumber = testsplee.textNumber = testsplee.textNumber - 020 ;
}

plz help me
thunderios
 
Posts: 87
Joined: Thu Jan 31, 2008 1:18 pm
Score: 1 Give a positive score

Re: rpg textNumber probs again LOL

Postby DilloDude » Mon Mar 03, 2008 12:05 am

try this:
Code: Select all
if(testsplee.textNumber >= 20);
{
    Speed += 5;
    CreateActor("Buydisable", "House1", "skateboard.x", "skateboard.x", 0, 0, false);
    ChangeZDepth("Buydisable", .99);
    testsplee.textNumber -= 20 ;
}
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron