ForumsProgramming ForumiOS games in As2?

6 5353
mightybob
offline
mightybob
360 posts
Peasant

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!

  • 6 Replies
mightybob
offline
mightybob
360 posts
Peasant

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

Salvidian
offline
Salvidian
4,170 posts
Farmer

iOS games are made with Objective-C.

weirdlike
offline
weirdlike
1,299 posts
Prince

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

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

mightybob
offline
mightybob
360 posts
Peasant

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

mightybob
offline
mightybob
360 posts
Peasant

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?

mightybob
offline
mightybob
360 posts
Peasant

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.
Showing 1-6 of 6