Implementing API's

For developers using the Construct 2 Javascript SDK

Post » Sat Mar 08, 2014 3:10 pm

I've got a publisher that wants to install a splash-screen and a 'More Games' button into my game and this requires a couple of API's, but I have no idea where to start. There are 3 files, 'Fla', 'Swc' and 'swf' (Flash, something, Shockwave Flash?). Possibly the same file in different formats?

Anyway, how do I get started with this? Anyone know where I can read a tutorial or something to get me on track?
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Sun Mar 09, 2014 11:56 pm

It sounds like they assumed you are making games using Flash. Tell them you're making HTML5 games instead.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Mon Mar 10, 2014 12:41 am

I told them that. I wasn't sure if it was possible to add Flash api's into the finished exported code or something?
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Mon Mar 10, 2014 12:57 am

Flash is a different technology entirely. You could possibly embed a .swf to the HTML page if you wanted, but there's not much point for mobile, since very few mobile browsers support Flash at all.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,681

Post » Mon Mar 10, 2014 12:31 pm

It's only for desktop but I don't know the coding, so it'll be hard work. He only wants a splash-screen and 'More Games' button so I'm thinking it'd be easier to just code them in if he'd be happy for both to just point to his main games page (browser - go to url option should do the trick).
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Thu Mar 13, 2014 12:55 am

@farflamex
you can try this plugin: plugin-fancybox_t89025
ImageImage
B
81
S
27
G
7
Posts: 191
Reputation: 10,545

Post » Thu Mar 13, 2014 11:14 pm

Looks like this might do the trick, it looks very good. Is there any documentation? I'm not sure what the link section is, presumably a direct web link to the file? Meaning I'll need to host the file somewhere seperately from the installed game?

Never mind, I've just realised there's a demo too, I can see how it works from there. Looks excellent, good job :)
B
25
S
5
G
3
Posts: 446
Reputation: 5,633

Post » Thu Mar 13, 2014 11:28 pm

I don't suppose there's a way that I can get information back from the SWF file is there? It links and works fine, but there's a 'Start' button on it. I'd like my program to be able to react to that and close the window, then hop into my game? Probably asking a bit much, but let me know if it's possible :)
B
25
S
5
G
3
Posts: 446
Reputation: 5,633


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests