When downloading from the android market, move to sdcard isn’t supported when it should be. Is there anyway to enable it or maybe release it in the next build? [import]uid: 29181 topic_id: 9177 reply_id: 309177[/import]
If you add installLocation preferExternal to build.settings it can be moved to SD, and will default to installing directly on the SD card.
android =
{
installLocation="preferExternal"
},
-Angelo [import]uid: 12822 topic_id: 9177 reply_id: 33785[/import]
Wow thanks Angelo. By the way I love your blast monkeys game. The android market version is fun. Do you know how to make a game side scrolling? Also how do you make a level select with level saves? Is there a website or something with a tutorial? [import]uid: 29181 topic_id: 9177 reply_id: 33796[/import]
Thanks! Yeah I can make a scrolling game ~ I would start with putting all of your display objects in a group, then you can move the group to the left or right to scroll the level.
Save data is interesting, I setup a database using the SQLite stuff they have here, but it might just be easier to save JSON to a file. For level select I just loop through the levels in my level table, and generate a button based on the data for that level.
I don’t know if there are any tutorials for it, but I did see this link going around on twitter with a bunch of tutorials. Maybe there’s something there? http://www.learningcorona.com/
Hope that helps,
-Angelo [import]uid: 12822 topic_id: 9177 reply_id: 33811[/import]
Wow awesome! Thanks so much for your reply! I have already been putting all of my display objects in a group. The part I still am having trouble with are saves. Is there any possible way that you could post the code on moving a group to the right?
I don’t know what it would be…if you need help beta testing or anything feel free to email me at ninjapig123@gmail.com. I just need help on a few things. Also congrats on 100,000 plus downloads on OpenFeints game of the day I would die to have my apps get that many downloads. I have some great ideas that I can implement once I learn side scrolling so if you could post some example code it would be awesome and so kind!
Regards,
Jordan Schuetz -16 years old [import]uid: 29181 topic_id: 9177 reply_id: 33838[/import]
Sure,
local world = display.newGroup()
--add stuf to world with insert
world.x = world.x + 1
if you are moving a character to the left, you can move the world to the right at the same rate to keep the character in the same place on the screen:
playerSpeed = 5
--Later in some update function:
player.x = player.x - playerSpeed
world.x = world.x + playerSpeed
There are a few libraries out on the web that handle saves for you, I’ve seen it in the beebe games class, the crawlspace lib and Graham Ranson’s rum.
If you want me to play your game and rate it on the App Store/Market when you’re done just @ me on twitter
-Angelo
[import]uid: 12822 topic_id: 9177 reply_id: 34053[/import]
Awesome thanks a bunch! Appreciate your time! [import]uid: 29181 topic_id: 9177 reply_id: 34054[/import]
No problem!
-Angelo [import]uid: 12822 topic_id: 9177 reply_id: 34056[/import]
I have this set in my build.settings file, but the app never seems to install to the SD card automatically.
Is anyone else having luck with that? [import]uid: 4596 topic_id: 9177 reply_id: 54493[/import]
It does not save it to the SD Card automatically, it just enables the users to move it if they wish manually in Setting > Applications > Manage Applications
Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 9177 reply_id: 54497[/import]
@ninjapid123
Then what’s the difference between “auto” and “preferExternal”? [import]uid: 4596 topic_id: 9177 reply_id: 54500[/import]
There is no auto…? It’s preferExternal, but it just allows users to move the files to the SD Card if they wish, but it wont do it automatically when the user installs the game.
Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 9177 reply_id: 54502[/import]
Weird, maybe it’s an Android 2.3.4 bug, because I have 2.67GB of external Storage available, but app installs always end up on my internal storage regardless of the installLocation manifest.
From the Android Developer docs:
To allow the system to install your application on the external storage, modify your manifest file to include the android:installLocation attribute in the element, with a value of either “preferExternal” or “auto”. If you declare “preferExternal”, you request that your application be installed on the external storage, but the system does not guarantee that your application will be installed on the external storage. If the external storage is full, the system will install it on the internal storage. The user can also move your application between the two locations. If you declare “auto”, you indicate that your application may be installed on the external storage, but you don’t have a preference of install location. The system will decide where to install your application based on several factors. The user can also move your application between the two locations.
http://developer.android.com/guide/appendix/install-location.html [import]uid: 4596 topic_id: 9177 reply_id: 54573[/import]