New iPhone GeLoader (Work in Progress)

Talk about making games.

Re: New iPhone GeLoader (Work in Progress)

Postby Fojam » Fri Nov 04, 2011 12:45 am

ok thank you skydereign! alright so i have updated the new geloader. it now should list the .dat files in the directory. now i need to work on the loading part
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: New iPhone GeLoader (Work in Progress)

Postby Fojam » Sat Nov 05, 2011 12:52 am

alright so this is getting pretty close to being finished, im just having some text input issues
the file path only seems to update after i hit the number twice, which doesnt make much sense.
if someone can take a look at the source code and see whats wrong, that would be awesome
Attachments
geloader.zip
(462.95 KiB) Downloaded 82 times
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: New iPhone GeLoader (Work in Progress)

Postby skydereign » Sat Nov 05, 2011 10:26 am

I'd really remake that ged if I were you. It'd be good learning experience. You created at least 20 unnecessary actors, and use textNumber and text in ways that you shouldn't rely on. I think partially because of that, you have your problem. Now, here is how you should convert text into a number.
Code: Select all
int var = atoi(string_var);

In your case, you would have something like this.
Code: Select all
levelNo = atoi(numberIndicator.text);


Now, if you have a lot of actors that do essentially the same thing, you can use cloneindex to differentiate them. So, I'd create one button actor, and have the cloneindex determine which character to strcat.
button -> Mouse Button Down (left) -> Script Editor
Code: Select all
switch(cloneindex)
{
    case 0:
    strcat(numberIndicator.text, "0");
    break;

    // one for each cloneindex
}

You could even use the cloneindex to get the proper characters, and avoid making a case for each cloneindex. In that case, you'd have only a default case, and one for backspace.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: New iPhone GeLoader (Work in Progress)

Postby Fojam » Sat Nov 05, 2011 9:14 pm

Ok i did what you said. the only thing im trying to figure out is how to line up the actors like i did before. before i had something in a create actor event like button_3.y=button_2.y;
im not sure how i would do that with individual clones, though.

anyway, here is what i have done so far:
Attachments
geloader.zip
(472.67 KiB) Downloaded 82 times
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: New iPhone GeLoader (Work in Progress)

Postby skydereign » Sat Nov 05, 2011 10:47 pm

What was that supposed to line up? That code doesn't do anything. They are already lined up because you place them on the stage. While you could use the switch(cloneindex) again (you'd have to use a getclone2 function), if it isn't necessary then you shouldn't do it.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: New iPhone GeLoader (Work in Progress)

Postby Fojam » Thu Nov 10, 2011 2:38 am

yeah i just wont.

alright im almost done i just need someone to compile the latest version of geapp for me please?
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Previous

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest