How do YOU make a game? [Team Thread]

Game Editor comments and discussion.

Re: How do YOU make a game? [Team Thread]

Postby SuperSonic » Sat Mar 10, 2012 4:37 pm

Hblade wrote:Good idea! XD
Thanks ^^. Oh, I also improved it this morning. Here's the new one:
Code: Select all
void viewfollow(int sensitivity, int xoffset, int yoffset)
{
    view.x += ((x + xoffset) - (view.x + view.width/2 ))/sensitivity;
    view.y += ((y + yoffset) - (view.y + view.height/2))/sensitivity;
}
Now you can have an offset =D

Hblade wrote:And lol at the coolness being ruined.
xDDDD
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: How do YOU make a game? [Team Thread]

Postby Hblade » Sat Mar 10, 2012 4:49 pm

How about this:
Code: Select all
    angle=direction(x+view.width/2,y+view.height/2,Follower.x,Follower.y);
    directional_velocity=distance(x+view.width/2,y+view.height/2,Follower.x,Follower.y)/10;


This will make it smooth, like in CaveStory, or some Action RPG's
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: How do YOU make a game? [Team Thread]

Postby SuperSonic » Sat Mar 10, 2012 9:07 pm

Hblade wrote:This will make it smooth, like in CaveStory, or some Action RPG's
Ummm... I guess you didn't realize it, but I built my function so that it would be smooth xD. The bigger sensitivity is, the smoother the camera changes :wink:
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: How do YOU make a game? [Team Thread]

Postby Hblade » Sun Mar 11, 2012 12:28 am

Oh o-O! beast :D
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: How do YOU make a game? [Team Thread]

Postby SuperSonic » Sun Mar 11, 2012 5:34 am

Thanks ^^
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: How do YOU make a game? [Team Thread]

Postby Hblade » Sun Mar 11, 2012 6:05 am

np ^^
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: How do YOU make a game? [Team Thread]

Postby SuperSonic » Sun Mar 11, 2012 8:14 pm

I'll make some more as soon as I get some ideas :D
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: How do YOU make a game? [Team Thread]

Postby lcl » Sun Mar 11, 2012 8:15 pm

SuperSonic wrote:Thanks ^^

Hblade wrote:np ^^

A nice pair of topic-killers..
These kinds of one-word messages from one user to other are really powerful in stopping the conversation. xD I guess you know what I mean :wink:

Hey SuperSonic, I see that you tried to make the typing of functions name easier and that's good.
But in my opinion it is also important to pay attention to how readable it is.
What I use is this:

myFunction

So that the name begins with little letter and every new word begins with capital letter. This way you can easily see what words there are in the name, compare:

setgrav AND setGrav

:D it's easier to understand the code when the capital letters "jump" to your eyes.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: How do YOU make a game? [Team Thread]

Postby SuperSonic » Sun Mar 11, 2012 9:14 pm

lcl wrote:A nice pair of topic-killers..
I am a topic murderer xD

lcl wrote:Hey SuperSonic, I see that you tried to make the typing of functions name easier and that's good.
But in my opinion it is also important to pay attention to how readable it is.
What I use is this:

myFunction

So that the name begins with little letter and every new word begins with capital letter. This way you can easily see what words there are in the name, compare:

setgrav AND setGrav

:D it's easier to understand the code when the capital letters "jump" to your eyes.
Yeah, I like to use caps sometimes, but when I do, I also cap the first letter. Like this: void MyFunction();
:D
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: How do YOU make a game? [Team Thread]

Postby Hblade » Sun Mar 11, 2012 9:15 pm

Hey your 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: How do YOU make a game? [Team Thread]

Postby SuperSonic » Thu Mar 15, 2012 6:38 pm

I made another function. This one is for parallax scrolling :D
Code: Select all
void ParallaxScroll(float intensity)
{
    x += (2 * (-intensity + .5)) * (view.x - view.xprevious);
    y += (2 * (-intensity + .5)) * (view.y - view.yprevious);
}
All you have to do is put this in your actor's draw code. For intensity, use a number from 0 to 1. 0 for being completely in the background and 1 for being completely in front (0.5 for being at a standard distance of course =D).

I hope this helps someone :wink:

@Hblade: Would you mind putting my functions in your first post? That way, you could have people upload functions and share them here. I dunno. It's just an idea ^^
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: How do YOU make a game? [Team Thread]

Postby Hblade » Fri Mar 16, 2012 3:28 pm

Good idea ^^ But I'm a tad confused about what you mean, you mean just slam this into the first post of this topic? ^^ SURE :D

I love this code! I'm so gonna use it.
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: How do YOU make a game? [Team Thread]

Postby SuperSonic » Fri Mar 16, 2012 10:46 pm

Hblade wrote:Good idea ^^ But I'm a tad confused about what you mean, you mean just slam this into the first post of this topic? ^^ SURE :D
Yeah haha. But you didn't get my ViewFollow() function :roll:

Hblade wrote:I love this code! I'm so gonna use it.
Awsome! I was hoping someone could find a use for it =D
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: How do YOU make a game? [Team Thread]

Postby Hblade » Sat Mar 17, 2012 10:32 am

Oh xD Fixing :)
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 GE - General

Who is online

Users browsing this forum: No registered users and 1 guest