Forums

ForumsProgramming Forum

iOS games in As2?

Posted Oct 28, '13 at 4:07pm

mightybob

mightybob

351 posts

I’ve been making a game, and I’m wondering if it is possible (not saying built in features, but an API out there maybe) to make it an iOS game to go on the iPad or whatever in As2. All I’d need is touch controls, so no fancy tilt detection or anything.

If there is no such thing built in or as an API, is it possible to somehow write my own script to detect something being tapped?

Thanks!

 

Posted Oct 28, '13 at 5:19pm

mightybob

mightybob

351 posts

this post that i am making here is just so it actually shows up on the forum page

 

Posted Oct 29, '13 at 4:32pm

Salvidian

Salvidian

3,950 posts

iOS games are made with Objective-C.

 

Posted Oct 29, '13 at 10:49pm

weirdlike

weirdlike

531 posts

Knight

http://i.imgur.com/sSrC488.jpg

Just like as2 vs as3 the programming is different. You can also use flashDevelop to create mobile games

 

Posted Oct 30, '13 at 9:51am

mightybob

mightybob

351 posts

I think you miss read my post, i was asking if there was a solution for making iOS games in As2.

 

Posted Oct 30, '13 at 10:00am

mightybob

mightybob

351 posts

After looking a little more it looks like this isn't possible, so how about As3 loading the As2 .swf into itself and having the buttons on the As3 file, so that the As3 file communicates with the As2 file? Could we use SharedObjects to do this? Like if the button is pressed

MySharedObject.data.pressingRightButton = 1;

And on the As2 side it's:

If (MySharedObject.data.pressingRightButton == 1)
{
   (accelerate player speed)
}

and then when the button is released:

MySharedObject.data.pressingRightButton = 1;

---------------
Could that work?

 

Posted Oct 30, '13 at 10:01am

mightybob

mightybob

351 posts

and then when the button is released:

MySharedObject.data.pressingRightButton = 1;

Sorry. typo, I meant when the button is released it's set to 0.

 
Reply to iOS games in As2?

You must be logged in to post a reply!