Help with API Integration for Sponsored Game

rob1221

  • *
  • Posts: 9473
That works fine for me, so I don't know what's wrong.  Maybe there's been some file corruption and your SWC just isn't being detected for some reason.

Unept

  • *
  • Posts: 351
OK, with the help of my web developer brother, we were able to trudge through and get it to work.

I updated the GameAllianzApi references to include the namespace:
Code: [Select]
com.gameallianz.api.as3.GameAllianzApi and we got it to work.

I thought the purpose of the import statements was to avoid having to do that. Any idea why the import statements didn't do that for me in the first place?

FYI, I'm putting the code in my preloader's created event.
Unicycle Hero: iOS  |  Level With Me: iOS/Android  |  Hue Ball: iOS/Android  |  Lava Bird: iOS/Android   |   Disposabot   |   Twitter

rob1221

  • *
  • Posts: 9473
I have no idea why the import wasn't working, but at least you got it working now.

Unept

  • *
  • Posts: 351
So I was hoping I'd have a better grasp of what to do for steps 3-6 in the sponsor's API doc once I got the initialization/preloader finished. But I am lost. Here is step #3:

3. Logos
var btn_portal:AssetPortalLogo             = new AssetPortalLogo(this,    X, Y  SCALE);
var btn_twitter:AssetTwitterButton             = new AssetTwitterButton(this, X, Y, SCALE);
var btn_facebook:AssetFacebookButton             = new AssetFacebookButton(this,X, Y, SCALE);


I assume it wants to pull in the button/logo images from the SWC, but I have no idea how to do it in Stencyl.
Unicycle Hero: iOS  |  Level With Me: iOS/Android  |  Hue Ball: iOS/Android  |  Lava Bird: iOS/Android   |   Disposabot   |   Twitter

rob1221

  • *
  • Posts: 9473
I tried some code, but it didn't work.  "this" is supposed to be an object of type Sprite (using the stage gave an error), so I made a Sprite, added it to the stage, and created those buttons.  Nothing happened.

Unless your sponsor wants to provide a working and appropriately documented API, I can't help further.

Note to self: do not accept any bids from GamezHero.

« Last Edit: November 26, 2013, 03:47:57 pm by rob1221 »

Unept

  • *
  • Posts: 351
No kidding. This is very heartbreaking, especially after all the time spent on a project, AND getting it sponsored. I hope that this is a unique circumstance, and not an experience that all first-time game creators go through.

I've reached out to my contact at Gamezhero. I'll let you know how it goes.

Rob, thanks a bunch for your help!

« Last Edit: November 26, 2013, 07:12:44 pm by Unept »
Unicycle Hero: iOS  |  Level With Me: iOS/Android  |  Hue Ball: iOS/Android  |  Lava Bird: iOS/Android   |   Disposabot   |   Twitter

Kazetoon

  • *
  • Posts: 556
I didn't find any answer somewhere else so I though I would ask here. How did you finally manage to get it working for your game?
Little Drop - Try it out!
     
iphone/ipad Android
Newgrounds Stencyl Arcade Kongregate
Developer Website

GameDev408

  • Posts: 257
Yes, I would like to know as well!