Scrolling Game Development Kit Forum

SGDK Version 1 => Help/FAQ => Topic started by: mattazoso on 2006-08-10, 02:53:39 PM

Title: Howdy folks!
Post by: mattazoso on 2006-08-10, 02:53:39 PM
Well, I played Mel Gibson Safari 3 and was inspired. So I'm trying to make a game with a baby and a bunch of zombies in Barbados. I did a bunch of "stuff" and I've got a map, I've got solid ground and the main player sprite. Now I'm trying to test it and I'm getting an Overflow! "Error Playing Map: Display Must Be Open". I also wanted to learn how to make a projectile shoot from the baby, if anyone could help me out with that too. I'm sort of new at this stuff, so I'm not as awesome at it as most of you people are, but baby must find his family!
Title: Re: Howdy folks!
Post by: sam on 2006-08-10, 03:03:59 PM
Did you make it so the map has a player sprite?
Did you make sure your main sprite has 'initial instance' checked?
Did you set which map to start on in player settings?

Shooting: Here. (http://sourceforge.net/docman/display_doc.php?docid=9165&group_id=9970) - skip down to step 6.
Title: Re: Howdy folks!
Post by: mattazoso on 2006-08-10, 03:19:30 PM
Yes.
Yes.
And yes.

If there's a way to post the code for someone to maybe look at?
Title: Re: Howdy folks!
Post by: mattazoso on 2006-08-10, 04:49:48 PM
I made a shortcut, I know the darn baby is there, i click on the shortcut, gamedev starts, then closes.

When I try to run it directly from the developer while its open I get the Overflow! message.

I've tried a bunch of stuff, re-doing the sprite, remaking the map, but it just doesnt cooperate.

oi!
Title: Re: Howdy folks!
Post by: sam on 2006-08-10, 07:05:55 PM
yup, copy and paste into a message, highlight it and click the '#' button
Title: Re: Howdy folks!
Post by: Jam0864 on 2006-08-10, 07:10:05 PM
does it let you edit the map
any sprite goes off the map in any way that is the only way ive ever got an overflow :-\
Title: Re: Howdy folks!
Post by: Jam0864 on 2006-08-10, 07:12:55 PM
read the tutorial  if there is anything you missed then fix it
Title: Re: Howdy folks!
Post by: bluemonkmn on 2006-08-10, 09:49:47 PM
Overflow usually happens when a sprite goes to a distance of more than about 2 billion pixels from the top left corner of the map.  That can happen if you forgot to delete a sprite after it left the map (which should have been impossible if you properly set solidity on the sprite) and it's still being affected by gravity.
Title: Re: Howdy folks!
Post by: mattazoso on 2006-08-11, 02:36:50 PM
okay, the problem was i didn't save the set as a solidity set, duh man.

now I'm trying to get this baby to shoot a bottle, and I made the script for the sprite of a projectile by useing that cool tutorial, but i push control and nothing happens. does the bottle need to be an initial sequence? do i attach it to the player sprite somehow so it shoots off the baby?

you guys are awesome for hlping me out, thanks.
Title: Re: Howdy folks!
Post by: sam on 2006-08-11, 08:35:19 PM
you have to create a shortcut to the prject ad play it from there in order for the script to run with it.
hehe, I can just picture script running through a field with a project into the sunset...*daydreams*lol
Title: Re: Howdy folks!
Post by: Jam0864 on 2006-08-13, 12:42:43 AM
yeh you have to go <file><Create shortcut> and put in the path to the script and game project type in a name and it should end up on your desktop
Title: Re: Howdy folks!
Post by: sam on 2006-08-13, 07:31:33 AM
jam, he already knows how to make a shortcut.
I just wasnt sure if he was using it or not.
Title: Re: Howdy folks!
Post by: Jam0864 on 2006-08-14, 01:13:53 AM
yeh well you never know ;D