The Armor Games website will be down for maintenance on Monday 10/7/2024
starting at 10:00 AM Pacific time. We apologize for the inconvenience.

ForumsProgramming ForumHow to make your flash game a Wii hit{online}

4 4168
Thebester5
offline
Thebester5
53 posts
Nomad

So you made a hit in Flash. But, you want people to be able to play it with the Wii. You don't know what to do. But now, I'm gonna tell you how you can do it.

Adobe Flash CS4 Professional Edition
Nintedo Wii
Wii remote API for Flash

Things You'll Need
1. Wii
2. Adobe Flash Adobe CS4 Profesional Version or Later
3. Wii Remote API for flash

Now heres where the API comes in:

Implement the Wii remote API by downloading and extracting it into the same directory as your Flash project file and placing the following line at the top of each code file you wish to use the Wii remote feature in:

import com.wiicade.*;

This line should go into each code file for each layer you wish to use. For example: if you have a code file for Layer 1 Frame 1 and a separate code file for Layer 2 Frame 1, you must place the statement at the top of both files in the Flash Studio Actions editor.

Once you have the necessary import statement in your code, you can begin using the advanced features of the WiiCade Remote API. Here's a good example of how it should look:

import com.wiicade.*;

function onEnterFrame() {
var remote = Wii.getPrimaryRemote();

if(remote.isDown(WiiRemote.BUTTON_B))
{
var x = remote.getCursorX();
var y = remote.getCursorY();
//Shoot something!
}
}

Don't leave anything out or it won't work properly.



NOW UPLOAD YOUR GAME TO ARMOR GAMES!!
  • 4 Replies
Thebester5
offline
Thebester5
53 posts
Nomad

Sorry the Link i forgot for the API

WhitePerson
offline
WhitePerson
21 posts
Nomad

Can you find the AS2 version of this?

Thebester5
offline
Thebester5
53 posts
Nomad

Let me see.

Thebester5
offline
Thebester5
53 posts
Nomad

As I know of, there is no possible way to do it. Sorry.

Showing 1-4 of 4