Best game you made?

Talk about making games.

Re: Best game you made?

Postby NightOfHorror » Tue Nov 15, 2011 11:21 pm

Bunnies are invading GE topics. *gets gun* time to put end to this. :twisted:
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: Best game you made?

Postby SuperSonic » Tue Nov 15, 2011 11:31 pm

Is it just me or do most people here have a tendancy to get off topic? (Including me)XD

So, if anyone wants to here the hardest function I've ever made, here it is. It is a function that draws 3d lines using a canvas. But they are all the same length and you can only draw lines in one direction:
Code: Select all
void MakeLine(int X, int Y)
{
    int xPer = view.x + view.width - X;
    int yPer = view.y + view.height - Y;
    moveto(X, Y);
    lineto(X - xPer, Y - yPer);
}

Yes, I know that it's really simple but it works. I'm using it to create a 3d platformer test :)
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Best game you made?

Postby Hblade » Wed Nov 16, 2011 2:25 am

=D

Swap Animations
Code: Select all
void AnimSwap(char *animation1, char*animation2, char *actorr) {
    Actor*a=getclone(actorr);
    if(a->animindex==getAnimIndex(animation1) && a->animindex!=getAnimIndex(animation2)) {
        ChangeAnimation(actorr, animation2, FORWARD); }
}


THis code is untested and was just now typed out xD what it'll do is swap the first animation with the second one but ONLY WHEN that animation is called. So it wont be a constant animation change. usage:
Code: Select all
AnimSwap("Walk Left", "Walk Right", "PLAYER");
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Best game you made?

Postby skydereign » Wed Nov 16, 2011 3:33 am

The problem with that function is that you can't use it on other actors. The actor whose animations you are switching has to be the event actor.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Best game you made?

Postby Hblade » Wed Nov 16, 2011 4:25 am

but I thought 'a->animindex==getAnimIndex(animation1)' would clear that up :P a-> points to the actor. o.o its like saying "if PLAYER.animindex==..." :D right?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Best game you made?

Postby skydereign » Wed Nov 16, 2011 4:31 am

The a->animindex part works fine. The problem is you are relying on getAnimIndex, which will get the animindex of the event actor's animation, not the clone.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Best game you made?

Postby Hblade » Wed Nov 16, 2011 4:34 am

Oh! That makes sense.hmm... eh its no biggie =P Thanks for pointing that out sky =)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Best game you made?

Postby JamesLeonardo32 » Wed Nov 16, 2011 11:36 am

This topic's a little off topic.

I like.
JamesLeonardo32
 
Posts: 320
Joined: Wed Oct 13, 2010 4:57 pm
Score: 36 Give a positive score

Re: Best game you made?

Postby Hblade » Wed Nov 16, 2011 5:31 pm

lol and the topic likes you!.. and cookies.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Previous

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest