Making project for school

Talk about making games.

Making project for school

Postby demonslayer4292 » Sun Dec 02, 2012 6:24 am

im working on the project for school and with the help of bee-ant i got rid of moon walk and now i was working on dialog for walking up to a book case and inter acting with it. so i downloaded bee-ants rpg dialog tutorial. i am currently using his exact codes and images but plan to change them just wanted to get it working. the problem im getting is when i enter game mode the dialog box comes down from the top immediately and when interact with the book shelve nothing happens. ill attach the ged and i hope some one can find my mistake :D by the way to get to the interactive book case you need to go through the doors of the large building in the center and its on the back wall
Attachments
game for engl.zip
not the best looking game iv ever made and using sprites not made by me but this is just for school :D i may come back and make it a full rp with my own graphics tho
(187.26 KiB) Downloaded 108 times
demonslayer4292
 
Posts: 5
Joined: Fri Oct 22, 2010 1:21 am
Score: 0 Give a positive score

Re: Making project for school

Postby Bee-Ant » Sun Dec 02, 2012 6:07 pm

User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Making project for school

Postby demonslayer4292 » Mon Dec 03, 2012 2:00 am

hmmm okay so that fixed the problem of the box but the text does not display now..... hmmm im working on tht now and thank you for all the help bee
demonslayer4292
 
Posts: 5
Joined: Fri Oct 22, 2010 1:21 am
Score: 0 Give a positive score

Re: Making project for school

Postby demonslayer4292 » Tue Dec 04, 2012 3:05 am

hmmm okay so i fixed the text box thing and thank you for getting it to at least come down for me bee-ant. now on to my next problem ...... lol i run into alot with this text thing ive been trying to get the text to appear in sequence eg: line 1 then 2 then 3 of the global. im not getting very much progress i have been trying to change
Code: Select all
int i=1+i;
if(Dialog==0&&ChatTime>0&&strlen(CurrD)>=strlen(FullD))
{
    TypeWrite(DialogList[i]);
    ChatTime--;
}


if(Dialog==0&&ChatTime<=0&&strlen(CurrD)>=strlen(FullD))
{
    strcpy(text,"");
    Dialog=2;
}
then going on with the standard code for the typewriter scroll text but this code seems to create an error that crashes the game. im assuming because the integer i was defined as 1 the first time but upon trying to receive the second line it cannot calculate 1+i because i is not defined by anything other then its self which would make the value undefined. i also tried to use
Code: Select all
int i =0;
int i= 1+i;
if(Dialog==0&&ChatTime>0&&strlen(CurrD)>=strlen(FullD))
{
    TypeWrite(DialogList[i]);
    ChatTime--;
}


if(Dialog==0&&ChatTime<=0&&strlen(CurrD)>=strlen(FullD))
{
    strcpy(text,"");
    Dialog=2;
followed by the code again but this only causes i to become 1 over and over again...... so currently im quite confused and help with the scripting of this would be appreciated. or even just a hint in the right direction i believe this helps more then just script for it makes me work to get my desired results and learn a little bit more about ge
demonslayer4292
 
Posts: 5
Joined: Fri Oct 22, 2010 1:21 am
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest