Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

XNA 4.0 Game

Name: Anonymous 2011-01-26 8:28

Hey Im making a "space shooter game" in XNA 4.0 and im haveing some trouble getting good movement. I want easy movement (press right to move right, left to move left, upp for upp and down for down) but I want a acceleration towards that direction when i press the button and I want it to decelerate when I stop pressing the button. I tried but im at a dead end.

Name: Anonymous 2011-01-26 8:38

Learn salsa

Name: Anonymous 2011-01-26 8:42

Yah, chicks dig salsa

Name: Anonymous 2011-01-26 9:36

>>1
There's several ways to do this.
You can do it really dirty and simple or... Perhaps a little more sophisticated.
It's not that hard, c'mon.

Name: Anonymous 2011-01-26 11:15

Why are all ``games'' made in XNA are ``abstract space shooters''?
Because the only people to ever want to use XNA don't know shit about programming and are thus unable to produce something even slightly complex or entertaining.

Name: Anonymous 2011-01-26 11:28

>>5
I don't get it, was that even a joke?

Name: Anonymous 2011-01-26 11:29

Xacser Notre Anii

Name: Anonymous 2011-01-26 11:43

Xarn Notre Anii

Name: Anonymous 2011-01-26 12:21

>>5
slightly complex
What does complexity have to do with quality of language, or development, or games? You must hate Tetris.
entertaining
He didn't say he wanted his game to be ``entertaining'', he said he wanted it to ``have good movement''. (ignore >>5 faggot)

>>1
How do you move the player right now? What needs to happen when input is received? Look at how you define movement. Maybe it needs to be fuqin changed a little bit? You think maybe time becomes a fuqin factor at this point?

upp for upp
ihbt

Name: Anonymous 2011-01-26 13:23

Xarnus the Bearder

Name: Xarnus the Bad Boyfriend 2011-01-26 13:29

Xarnus the Bad Boyfriend

Name: Anonymous 2011-01-26 21:55


#define dec 0.25

float vx,vy;
float ax,ay;



void handlekey(int code)
{
    switch(code)
    {
    case UP_CODE:    ay = 1; break;
    case DOWN_CODE: ay = -1; break;
    case LEFT_CODE: ax = 1; break;
    case RIGHT_CODE: ax = -1; break;
    }
}

void handlemove(int dt)
{
    vx = ax*dt;
    vy = ay*dt;
   
    x = vx*dt;
    y = vy*dt;
   
    ax-=dec;
    ay--dec;
}

Name: Anonymous 2011-01-26 22:32

OP here!
Thanks that salsa thing got me laid.
fuck programming...

Name: Anonymous 2011-01-26 22:34

sex considered overrated

Name: Anonymous 2011-01-26 22:40

[b][i]Sex consider harmful[i][/b]

Name: Anonymous 2011-01-26 22:41

Sex consider harmful

Name: Anonymous 2011-01-26 22:42

autism considered beneficial!!!!!!!!!!!!!!!

Name: Anonymous 2011-01-26 22:43

Sex considered harmful

Name: Anonymous 2011-01-26 22:43

fucking shit

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List