Be a Supporter!
Response to: Api Connector does not preload Posted September 13th, 2014 in Game Development

Link to Access is Denied

Api Connector does not preload Posted September 13th, 2014 in Game Development

Hello I have a game "Access is Denied". In Flash CC I put the API Connector on the first frame. However. The API Connectore does not preaload the SWF. THe screen is just white while the game is loading and when it is ready the APIConnector load bar is full and active. I would like the first frame with the API Connector to show up while the SWF is loading. My Project is exported as a class. I use this code in the constructor.

public function Project18() {
			// constructor code
			super();
			stop();
			API.connect(this, '38358:cQAV7Tlj', 'Bme6SV6JEvS5rUCn542PW6X7UT4Dpveu');
			this.addEventListener(Event.ENTER_FRAME, loading);
		}
		
		function loading(e:Event):void{

			var total:Number = this.stage.loaderInfo.bytesTotal;
			var loaded:Number = this.stage.loaderInfo.bytesLoaded;
			trace(total);
			
			if (total == loaded) {
				init();
			}
			
			removeEventListener(Event.ENTER_FRAME, loading);
		}

also. the API does not connect until I manually add the code in the constructor. I get this error in flash cc's debugger

TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at Project18/__setProp___id0__Scene1_Layer1_0()
	at Project18/frame1()
	at flash.display::MovieClip/gotoAndStop()
	at com.newgrounds.components::FlashAdBase()
	at com.newgrounds.components::FlashAd()
	at flash.display::Sprite/constructChildren()
	at flash.display::Sprite()
	at flash.display::MovieClip()
	at com.newgrounds.components::APIConnector()
	at flash.display::Sprite/constructChildren()
	at flash.display::Sprite()
	at flash.display::MovieClip()
	at Project18()
New Movie Pit Stop Posted July 20th, 2014 in Animation

Hi Guys I working on a new film called pit stop. I hope to release it on Friday.

preview Pit Stop the movie

New Movie Pit Stop

Friendly Encounter Posted June 30th, 2014 in Animation

Hi guys. I am working on a new animation called 'Friendly Encounter' I want to publish it later this week. Check it out here:

Friendly Encounter preview

Response to: Test my Movie Posted April 21st, 2014 in General

At 4/21/14 02:05 PM, EJR wrote: I did not see any ads when I loaded it.

Maybe I am doing something wrong? I have seen ads before other movies that use the video player. Is there something other than enabling ads that I have to do?

Response to: Test my Movie Posted April 21st, 2014 in General

Thanks for testing guys. DId you see an ads before the video started?

Test my Movie Posted April 21st, 2014 in General

Hello guys I uploaded a new movie (mp4 format). Can you guys test it for me please? Thanks.

http://www.newgrounds.com/projects/movies/763945/preview

I want to make sure that the ads work before I publish.

I already got approved for ads.

Thanks.

Test my Movie

Response to: Ads and scoreboarod not working Posted August 21st, 2013 in Game Development

At 8/20/13 11:49 PM, MSGhero wrote:
At 8/20/13 11:43 PM, oladitan wrote: Hi MSGhero. Thanks for visiting my game. The add is not suppose to have pico in it. It is suppose to have an add. The scoreboards shows up, but there are no scores. This gamel has been played.
Pico means it's working. You don't see actual ads until it's actually published. Are you posting scores correctly? That's the important code regarding your issue.

This game has been published since August 9th. Before publishing the ads worked. Can you see the API output? the I am using API.postScores('scores', score) method correctly.

Response to: Ads and scoreboarod not working Posted August 20th, 2013 in Game Development

At 8/20/13 04:47 PM, MSGhero wrote:
At 8/20/13 04:45 PM, oladitan wrote:
At 8/20/13 04:06 PM, MSGhero wrote: They have standalone ads as well if you wanna use those. What exactly is the problem? Are you getting an error, or is it not showing up at all? Have you tried putting trace statements in the function that adds the scoreboard to see if it even runs?
did you click the link?

Gun-Wheels the robot link
It was restricted. Works fine for me, the pico ad, preloader, and scoreboard show up.

Hi MSGhero. Thanks for visiting my game. The add is not suppose to have pico in it. It is suppose to have an add. The scoreboards shows up, but there are no scores. This gamel has been played.

Response to: Ads and scoreboarod not working Posted August 20th, 2013 in Game Development

At 8/20/13 04:06 PM, MSGhero wrote: They have standalone ads as well if you wanna use those. What exactly is the problem? Are you getting an error, or is it not showing up at all? Have you tried putting trace statements in the function that adds the scoreboard to see if it even runs?

did you click the link?

Gun-Wheels the robot link

Response to: Ads and scoreboarod not working Posted August 20th, 2013 in Game Development

At 8/20/13 02:37 PM, MSGhero wrote: You don't need an api connector, that's what api.connect is for. And when you say " apiid" and "encryptionkey", are you using the id and key provided to you by ng, or are you actually using those strings?

The api connecter is the ad. I am using the actual id encrytion key not the placehoder strings. Usualy pico shows up only when I am running the game on my desktop.

Response to: Ads and scoreboarod not working Posted August 20th, 2013 in Game Development

At 8/20/13 11:58 AM, nitokov wrote:
At 8/20/13 11:45 AM, oladitan wrote: hello I have a game called ' Gun-Wheels the robot' for some reason neither ads or the scoreboards seem to be working for this game. Can you tell me why? Thank You

Gun-Wheels the robot
any details? some code perhaps?
did you follow instructions?

package
{
import com.newgrounds.components.APIConnector;
import com.newgrounds.API;
import com.newgrounds.ScoreBoard;
import flash.display.Bitmap;
import flash.display.DisplayObject;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import flash.utils.getDefinitionByName;
import com.newgrounds.components.ScoreBrowser;
import com.newgrounds.APIEvent;

import com.newgrounds.API;

/**
* ...
* @author Olu Laditan
*/
public class Preloader extends MovieClip
{
[Embed(source = "assets/images/backgroundImg1.png")] public var backgroundImage:Class
public var backgroundBitmap:Bitmap;

public var scoreBrowser:ScoreBrowser;
public var apiConnected:Boolean = false;
public function Preloader()
{
if (stage) {
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
}
addEventListener(Event.ENTER_FRAME, checkFrame);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress);
loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);

// TODO show loader

API.connect(this,'APIID', 'encrytionKey', '1.0');
API.addEventListener(APIEvent.API_CONNECTED, onAPIConnected);
backgroundBitmap = new backgroundImage();
addChild(backgroundBitmap);

var apiConnector:APIConnector = new APIConnector();
apiConnector.apiId = 'APIID';
apiConnector.encryptionKey = 'encrytionKey';

addChild(apiConnector);

apiConnector.x = 32;
apiConnector.y = stage.stageHeight - apiConnector.height - 32;
}

private function ioError(e:IOErrorEvent):void
{
trace(e.text);
}

private function progress(e:ProgressEvent):void
{
// TODO update loader
}

private function checkFrame(e:Event):void
{
if (currentFrame == totalFrames)
{
stop();
loadingFinished();
}
}

private function loadingFinished():void
{
removeEventListener(Event.ENTER_FRAME, checkFrame);
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress);
loaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, ioError);

// TODO hide loader

startup();
}

private function startup():void
{
removeChild(backgroundBitmap);
if (scoreBrowser.parent) removeChild(scoreBrowser);
var mainClass:Class = getDefinitionByName("Main") as Class;
addChild(new mainClass() as DisplayObject);
}

public function onAPIConnected(e:APIEvent):void {
if(e.success){
scoreBrowser = new ScoreBrowser();
scoreBrowser.scoreBoardName = "scores";
scoreBrowser.period = ScoreBoard.ALL_TIME;
scoreBrowser.loadScores();
scoreBrowser.buttonMode = false;

scoreBrowser.x = stage.stageWidth - scoreBrowser.width;
scoreBrowser.y = stage.stageHeight - scoreBrowser.height;
addChild(scoreBrowser);
}
}

}

}


hello I have a game called ' Gun-Wheels the robot' for some reason neither ads or the scoreboards seem to be working for this game. Can you tell me why? Thank You

Gun-Wheels the robot

Rocket Chucker Posted August 7th, 2013 in Game Development

Test out my new game rocket chucker

http://www.newgrounds.com/projects/games/700468/preview

thanks.

Response to: New Game "Bye Robot" Posted April 6th, 2013 in Game Development

At 4/1/13 04:34 AM, FlyingColours wrote: Awesome! That's one game I'll totally five. I think it's ready to publish now, and look forward to a sequel! :)

Thanks Flying Colours. I have published the game.

Response to: New Game "Bye Robot" Posted April 1st, 2013 in Game Development

At 3/31/13 02:56 PM, PMMurphy wrote: I liked your game. It was pretty cool. Like everything about it.

I am glad that you liked it. I think today is good day to publish.

Response to: New Game "Bye Robot" Posted April 1st, 2013 in Game Development

At 3/30/13 10:08 PM, FlyingColours wrote: Just noticed your bonus stage! The comic link seems to be broken for me. Can you fix that?

It should be fixed now. Let me know.

Response to: New Game "Bye Robot" Posted March 31st, 2013 in Game Development

At 3/31/13 03:20 AM, GeoKureli wrote:
I would recommend not publishing this yet; it has some great graphics and a lot of potential, but it's not really a game yet. you just click three times and you win the game. Then again I'm drunk right now so maybe I don't know what I'm talking about.

Your point is valid. but I don't wish to continue with this particular story. I added a tutorial level at the beginig.

Response to: New Game "Bye Robot" Posted March 30th, 2013 in Game Development

At 3/30/13 02:35 PM, Diki wrote:
At 3/30/13 01:49 PM, oladitan wrote: give it another try. try clicking on objects.
Well, after clicking on things randomly I eventually got the message "bye bye robot", so I guess I beat it?

I find this has the same issue I ran into with your other game Force; it's not clear what it is the player is supposed to be doing. Maybe add an explanation that it's a point and click game, or have some sort of hover state on objects that can be clicked (e.g. having them glow red)?

I think you need to refresh your browser. These types of elements have been implemented. Well. I am getting ready to publish. Any final comments?

Response to: New Game "Bye Robot" Posted March 30th, 2013 in Game Development

At 3/29/13 07:14 PM, Diki wrote: As far as I've been able to figure out the only thing to do is pan the camera left/right and down

give it another try. try clicking on objects.

Response to: New Game "Bye Robot" Posted March 30th, 2013 in Game Development

At 3/29/13 08:23 PM, GeoKureli wrote: the camera system is weird too, a click and drag interface usually pans the opposite way. or you could keep it the way it it but don't have to click to look around

The models are good though.

Thanks GeoKureli. I have inverted the camera interaction. The problem I had with the second option was getting consistent and accurate mouse positions. The position of the mouse and the angles of the camera have to be specific for this game.

New Game "Bye Robot" Posted March 29th, 2013 in Game Development

Hello again guys. I have a new game that i'm working. I will do a better job of implementing suggestions this time. here is the link: http://www.newgrounds.com/projects/games/662320/preview

thanks

New Game "Bye Robot"

Response to: New Game "The Force" Posted March 18th, 2013 in Game Development

At 3/18/13 10:06 AM, flashMan wrote:
At 3/17/13 07:58 PM, oladitan wrote:
At 3/11/13 01:30 PM, flashMan wrote: point system doesnt work
Yes it does.

I have made some new adjustments. http://www.newgrounds.com/projects/games/658244/preview
how do i get points

To get points you hold the flashing arrow. you loose if any of the objects fall off of the map

Response to: New Game "The Force" Posted March 17th, 2013 in Game Development

At 3/11/13 01:30 PM, flashMan wrote: point system doesnt work

Yes it does.

I have made some new adjustments. http://www.newgrounds.com/projects/games/658244/preview

Response to: Test my game "Brain Tumors" Posted March 15th, 2013 in Game Development

At 3/14/13 03:22 PM, GeoKureli wrote: I couldn't tell a single difference, I think most people won't be be able to tell the difference, and that's going to hurt your score. How would you like it if you played Mario and the first 2 levels were the same? Would you bother to play a third level?

I have updated the game. In each level the boss has different maneuvers.

Response to: Test my game "Brain Tumors" Posted March 14th, 2013 in Game Development

At 3/14/13 03:04 PM, GeoKureli wrote: you didn't really change anything, you made each level harder, but level 1 is still the same as level 2. All the enemies do the nothing, all the bosses do the same thing.

I like the zig zag pattern but now level 1 is too hard.

I made less levels and added a power up earlier on in the game. each level is significantly much harder than the one before. I still might implement those changes, hopefully before it leaves judgment. thanks

Response to: Test my game "Brain Tumors" Posted March 13th, 2013 in Game Development

Thank you guys for providing feedback I have uploaded a new version of the game with less levels and more drastic gameplay dynamics.

http://www.newgrounds.com/projects/games/646117/preview

Response to: New Game "The Force" Posted March 11th, 2013 in Game Development

At 3/11/13 12:44 PM, Diki wrote: I have no idea what I'm supposed to be doing. You should add some instructions on how to play.

Click on the flashing green bar to control force. When you hold the green bar for a certain duration, you gain a point and repeat the process. If an object drops off the map the game ends. Drag the mouse inside the view to change your view.

New Game "The Force" Posted March 11th, 2013 in Game Development

Hello. I would appreciate it if you guys could help me test my new game "The Force"

http://www.newgrounds.com/projects/games/658244/preview

Thank you