Discuss Scratch

karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

gregoryshapovalov wrote:

lttlgames wrote:

This worked for me.

1) install adobe air sdk, android sdk, and jave jre
2) create scratch and export to .sb2 (create in turbo mode ideally)
3) convert .sb2 to .swf (auto start and turbo mode if created it in turbo mode)
-http://junebeetle.github.io/converter/online/
4) create .xml file
-looks like this http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html
-but remove icons portion
5) create .p12 certificate using keytool
-cmd at C:\Program Files\Java\jre1.8.0_92\bin
-“keytool -genkey -v -keystore scratch.p12 -alias alias_name -keyalg RSA -storetype pkcs12 -keysize 2048 -validity 10000”
-more info: https://helpx.adobe.com/digital-publishing-suite/kb/publishing-process-android-amazon-mobile.html
6) create apk
-cmd at C:\Program Files\AIR\bin
-“adt -package -target apk-captive-runtime -storetype pkcs12 -keystore scratch.p12 -storepass 123456 scratch.apk scratch.xml scratch.swf”

Thank you, it really works. But how to change ratio on 16:9 from 4:3?
I'm not sure how to do it with the method you described, but you could try compiling to JS with Sulfurous and then using PhoneGap Build to convert to an app. Sulfurous has screen size built in.
byeres
New Scratcher
1 post

Convert .sb2 to .apk

NitroDragon147 wrote:

Okay, after copious amounts of research, I have found the following.
The way I converted *.sb2 to *.apk, requires you to compile it with phosphorus (at phosphorus.github.io), put it into a GitHub repository, then run it through Adobe PhoneGap. It will create an *.apk file that you can then either sideload to your Android/Amazon device or post to the Amazon/Google Play Store.

It works, I tried it. The only reason my game isn't up is because I used sprites from an old Zelda game.

Hi
I compile it with phosphorus but I dont know how to put it into a GitHub repository
when I click the package at phosphorus.github.io, open a link to a web page that automatically runs project.
how can take package file to put into Github repository
jacquesimo
Scratcher
100+ posts

Convert .sb2 to .apk

byeres wrote:

NitroDragon147 wrote:

Okay, after copious amounts of research, I have found the following.
The way I converted *.sb2 to *.apk, requires you to compile it with phosphorus (at phosphorus.github.io), put it into a GitHub repository, then run it through Adobe PhoneGap. It will create an *.apk file that you can then either sideload to your Android/Amazon device or post to the Amazon/Google Play Store.

It works, I tried it. The only reason my game isn't up is because I used sprites from an old Zelda game.

Hi
I compile it with phosphorus but I dont know how to put it into a GitHub repository
when I click the package at phosphorus.github.io, open a link to a web page that automatically runs project.
how can take package file to put into Github repository
Are you asking how to download the project from Phosphorus?
karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

byeres wrote:

NitroDragon147 wrote:

Okay, after copious amounts of research, I have found the following.
The way I converted *.sb2 to *.apk, requires you to compile it with phosphorus (at phosphorus.github.io), put it into a GitHub repository, then run it through Adobe PhoneGap. It will create an *.apk file that you can then either sideload to your Android/Amazon device or post to the Amazon/Google Play Store.

It works, I tried it. The only reason my game isn't up is because I used sprites from an old Zelda game.

Hi
I compile it with phosphorus but I dont know how to put it into a GitHub repository
when I click the package at phosphorus.github.io, open a link to a web page that automatically runs project.
how can take package file to put into Github repository
Try using this tutorial I made. https://scratch.mit.edu/projects/116055504/
123squirrel
Scratcher
55 posts

Convert .sb2 to .apk

NitroDragon147 wrote:

I know that there's an .sb2 to .exe compiler, I'm wondering if there has been an .sb2 to .apk or .js compiler.
If there isn't currently one, what programming language would one have to use to create one?
:)


Pre-requisites: A GitHub account, an HTML file editor, general knowledge of computers, and NO COPYRIGHTED MATERIAL!
This is a large issue as copyrighted material (which includes sounds, sprite recolors, and even CC material that is not attributed correctly) in a commercial (and even, in some cases, non-commercial) game or app is grounds for a LAWSUIT, which I highly doubt many of us can afford.


Anyways…
I've got this figured out (well, my method, at least). If you're relatively good at computers, it's only a few simple steps.

  • First, compile your game/project with Phosphorus (phosphorus.github.io).
  • Second, Put your compiled project into a GitHub repository by doing the following:
  1. When you've compiled your project, press the button that says “Full Screen”.
  • From this, copy the HTML code, and paste it into your Git Repo as index.html. Also, copy the phosphorus source into your repo.
Okay, now the rest.
  • After that, use Adobe PhoneGap to compile your project into an *apk or a(n) (insert name of Apple device file here).
  • Then test it on your Android(/Apple) Emulator(/Device).
  • If it runs well, post it to Amazon, it's free.

Please read the rest of the forum, as other details and questions are explained and answered.[/quote
Uhhh there's an Android app called scratch2apk that's real easy to use
GizzyGazzy360
Scratcher
87 posts

Convert .sb2 to .apk

happyland440 wrote:

jacquesimo wrote:

blob8108 wrote:

You could bundle Phosphorus inside Crosswalk.
How do you bundle it?

If you bothered to read the tutorials, it's not that hard.

@NitroDragon147's tut is good if you want it open source, but I'd prefer Crosswalk.

lttlgames wrote:

This worked for me.

1) install adobe air sdk, android sdk, and jave jre
2) create scratch and export to .sb2 (create in turbo mode ideally)
3) convert .sb2 to .swf (auto start and turbo mode if created it in turbo mode)
-http://junebeetle.github.io/converter/online/
4) create .xml file
-looks like this http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html
-but remove icons portion
5) create .p12 certificate using keytool
-cmd at C:\Program Files\Java\jre1.8.0_92\bin
-“keytool -genkey -v -keystore scratch.p12 -alias alias_name -keyalg RSA -storetype pkcs12 -keysize 2048 -validity 10000”
-more info: https://helpx.adobe.com/digital-publishing-suite/kb/publishing-process-android-amazon-mobile.html
6) create apk
-cmd at C:\Program Files\AIR\bin
-“adt -package -target apk-captive-runtime -storetype pkcs12 -keystore scratch.p12 -storepass 123456 scratch.apk scratch.xml scratch.swf”

This could be confusing for littler kids who want to make apps. Also, too many Adobe things! And you can just wait until 2017 for Scratch 3.0.
2017 you say haha! I am from the future and you need to wait until 2019! nyeheheheh
Tiggy475
Scratcher
14 posts

Convert .sb2 to .apk

JDisREAL wrote:

I Know How To Do It, Considering Scratch Projects Are Flash Games. You Can Easily Convert The .sb2 File To A SWF, & Use The SWF To Make The App

STEPS:

1. Create A Account At net2share.com

2. Click ‘Create an app’

3. Click ‘Converter’

4. Choose SWF3

3. Upload The SWF & The Icon

4. Click ‘Converter Types’ Choose ‘AIR-SWF’ Adobe Air Will Run You're App Now.

5. Now, Click ‘Advanced Settings’ & Change The Package Name, & Choose A Market (WARNING: PACKAGE NAMES CAN'T HAVE SPACES)

This Converter Has Not Been Made By Me

Thanks

Doesn't work, cause this site is gone
snaps1
Scratcher
66 posts

Convert .sb2 to .apk

-SuperScratch- wrote:

cobraguy wrote:

There isn't a .sb2 to .apk, but there is App Inventor, which is a more advanced drag-and-drop language that is also made by MIT, but can be used to create Android apps.
And u can play web pages on it so… U can do it DAT way with phosphorus.
Um, NO. The whole point is so it can be offline and still playable!

whenclickedif.jarcontains.apkthenshoutDUHHHHHHHH I read somewhere they contain .apks :/wait1secswhisperOOOOOOOOOOAAAAAHHHHHHHHHHHfor2secstheend

Powered by DjangoBB