Search:

Type: Posts; User: Akkernight

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    2,161

    Well, I dunno exactly what virtual means, but it...

    Well, I dunno exactly what virtual means, but it doesn't change anything serious, if placed wrong, right?
  2. Replies
    18
    Views
    2,161

    Well, this game won't have monsters exactly,...

    Well, this game won't have monsters exactly, it'll have players, then I'll make computer AI players too, if I can figure how ;)
    But I'll be putting them under character too, shouldn't I be doing...
  3. Replies
    18
    Views
    2,161

    Awsome! Thanks :) Pointers are really simple...

    Awsome! Thanks :)
    Pointers are really simple when you think of it, but still they're a pain in the ass sometimes xD
  4. Replies
    18
    Views
    2,161

    That really doesn't tell me anything at all xP...

    That really doesn't tell me anything at all xP
    I've figured out what my real question is now xD
    When should I use pointers to classes? Like, if I have a class that I'll use often, like player...
  5. Replies
    18
    Views
    2,161

    huh? o.O P1 is declared like... player * P1, or...

    huh? o.O
    P1 is declared like... player * P1, or was... Now it's: player P1
    You see the player class on the thread start ;)
  6. Replies
    18
    Views
    2,161

    Well, I was doing this ...

    Well, I was doing this


    if(hge->Input_GetKeyState(HGEK_LEFT)) P1->x -= P1->speed * dt;
    if(hge->Input_GetKeyState(HGEK_RIGHT)) P1->x += P1->speed * dt;

    if(P1->gravEffected()) P1->gravity();...
  7. Replies
    18
    Views
    2,161

    problem with classes and pointers

    WARNING: Not very clean code xP

    Well, I have this class called player.


    class player : public character{

    public:
    player();
    ~player();
Results 1 to 7 of 7