Recent posts by Willomo on Kongregate

Subscribe to Recent posts by Willomo on Kongregate

avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Shootorial 5 problem

I’m trying to complete shootorial 5 but after I finished the code on page three the enemy ships only appear staying still in the top-left corner. here is my code.(the bold things have an asterisk before and after like in the code)(my screen is 1000 pixels wide)
class EnemyShip extends MovieClip
{
var speed;

function onLoad()
{
x = 1100;
_y = Math.random()500 + 50;
speed = Math.random()
5 + 5;
}

function onEnterFrame()
{
_x -= speed;
if(
x < -100)
{
this.removeMovieClip();
}

function explode()
{

this.removeMovieClip();
}
}
Cheers~Willomo

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Shootorial 2 problem

Now when both of those have gone past it jumps in 2 centimetres from the edge and does that each time a loop goes around. ( I changed The width from 2110 to 302, the correct width)

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Shootorial 2 problem

sorry for the double post but I just noticed that after the background almost reached the end of the window (about 2 centimetres from the edge ) It would put the background back at the start.(sorry If my phrasing is bad)

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Shootorial 2 problem

On the as file that underscore is there… I think my computer hates copying underscores to forum posts.

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Shootorial 2 problem

What? I’m not sure I understand what you mean. But I did have the correct in line five but I must have accidentally deleted it.

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Shootorial 2 problem

I followed the shootorial as closely as I could with one exception: I used my own background with the same dimensions. My background scrolls but doesn’t loop here is the code for the class “Background”:
class Background extends MovieClip
{
function onEnterFrame()
{
x = _x – 2;
if(
x < -2110)
{
_x = 0;
}
}
}
Cheers~Willomo

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / I need to know the code for something

When I started my game It came up with the error “1120: Access of undefined property objectB.” with the source “objectB.SpawnTwoObjectAs();” Do you know how to fix this? Also: I forgot to mention that when clicked on I want that objectA to be destroyed.

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / I need to know the code for something

thanks! I’ll try it now.

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / I need to know the code for something

What code to I need to make it so that when i click on an object(object a for example) a different object(object b) will make two more of object a moving in two random directions? I made this work on gamemaker but I have no Idea how to make it work on flash(flash 9). please help
Cheers~Willomo

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Game help needed

oh. Thanks!

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / "Movie not loaded" after refreshing the page.

I tried and I can load up both your games, Try it in a different browser or maybe get the latest flash player.

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Game help needed

but how do I add an achievement? like one of those badges?

 
avatar for Willomo Willomo 13 posts
Flag Post

Topic: Game Programming / Game help needed

I made my game (http://www.kongregate.com/games/Willomo/city-dragndrop dodgy, I know) And I want to make it so that if you you find all three secret items you get a reward, how do I do this?
Cheers~ Willomo