stayscrisp's Profile User Rating: *****

Reputation: 928 Master
Group:
Moderators
Active Posts:
4,070 (2.12 per day)
Joined:
14-February 08
Profile Views:
67,356
Last Active:
User is offline Today, 07:38 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Who Cares
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Nintendo
Your Car:
Hyundai
Dream Kudos:
525
Expert In:
Game Programming, C++, Graphic Design

Latest Visitors

Icon   stayscrisp それググ

Posts I've Made

  1. In Topic: SDL: Unable to move sprite

    Posted 9 May 2013

    Hi,

    Wow! I don't even know where to start with your code.

    This code below is the wrong order really, you want to fill the screen and then draw to it and then update it (you should look into double buffering also).
    SDL_BlitSurface(sprite, &srcRect, screen, &player.spriteRect); //Blit the Krumm sprite
    SDL_UpdateRect(screen, 0, 0, 0, 0); //Update screen with new sprite
    SDL_FillRect(screen, NULL, 0x000000); //Fixes the ghosting issue
    
    


    I don't want to copy and paste it but your animation handling is a little crazy. If you know the height and width of each frame then why can't you just increment by that each time you update?

    But anyway that is not your current issue, your problem is that you are resetting the position of the sprite to 0 every time you call doPlayer() (which is every frame)

    player.spriteRect.x = 0;
    
    


    And yeah it does go on to update the position, but next time round will be exactly the same as you have reset the position again.
  2. In Topic: DirectX 11 Initialize

    Posted 5 May 2013

    MSDN is awesome :)
  3. In Topic: Proper implementation of States

    Posted 2 May 2013

    Check out my tutorials linked in my signature :)
  4. In Topic: 2d platformer

    Posted 18 Apr 2013

    Spot the difference between this declaration:

    virtual void Draw(sf::RenderWindow &Window);
    
    


    And this definition:

    void GameScreen::Draw()
    {
    }
    
    
  5. In Topic: SDL Runtime terminated in unusual way

    Posted 17 Apr 2013

    Do you have a stack trace? Do you know the location that the exception occurred?

My Information

Member Title:
フカユ
Age:
28 years old
Birthday:
September 1, 1984
Gender:
Location:
Hexham, UK
Interests:
Video Games, Coding Video Games, Playing Guitar, Newcastle United, Black Label Society
Forum Leader:
Game Programming, Graphic Design
Years Programming:
5
Programming Languages:
C++, Flash Actionscript, HLSL

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  stayscrispinmilk

Comments

  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    aaron1178 Icon

    03 Apr 2013 - 01:48
    Hey Stayscrisp, hows it going? also what ever happened to serapth? or however you spell it :p I went away for a month or two and he was no longer a game dev forum leader
  2. Photo

    raghav.naganathan Icon

    27 Dec 2012 - 20:46
    Dude...congrats on the signature contest...and congrats on the perfect square rep(900) as well :)
  3. Photo

    PabloSimo Icon

    28 Jan 2012 - 23:56
    Stayscrispinmilk, hows it going? your a hard person to find
  4. Photo

    civicdude95 Icon

    19 Jan 2012 - 09:48
    Hey crisp, you should make some more sdl tutorials. The old ones are great and I'm sure people would love to see more of them!
  5. Photo

    trevster344 Icon

    06 Jan 2012 - 10:44
    Keep up the good work!
  6. Photo

    sidwwegame Icon

    01 Jan 2012 - 06:32
    HEY PLZZZ HELP ME TO MAKE c++ coding on cash counter.......PLZZZ SEND ME A CODING ....
  7. Photo

    aaron1178 Icon

    26 Aug 2011 - 01:40
    You wouldn't happen to know If or When forum leaders are next chosen would you? and hows mod life :]
  8. Photo

    aaron1178 Icon

    10 Aug 2011 - 01:17
    I miss you over at the Game Programming forum :Sob: its so inactive these days haha but congrats
  9. Photo

    gabehabe Icon

    27 Jul 2011 - 10:25
    Only made it yesterday morning... I feel my office productivity level is high. ;)
  10. Photo

    Achri Icon

    20 Jul 2011 - 18:53
    Congratulations on your blueness.
    I'd like to request an SDL_net tutorial to add on to your tutorials. The way you write makes it easy to learn. Thanks
  11. Photo

    gabehabe Icon

    12 Jul 2011 - 03:08
    Since when are you mod? Congrats man!
  12. Photo

    ButchDean Icon

    07 Jul 2011 - 05:33
    Congrats on becoming a mod, SC! :)
  13. Photo

    stayscrisp Icon

    07 Jul 2011 - 02:13
    Thanks for the congrats!
  14. Photo

    Dogstopper Icon

    06 Jul 2011 - 14:54
    You have become one with the blue people!
    (Avatar movie reference)
  15. Photo

    RandomlyKnighted Icon

    06 Jul 2011 - 13:12
    Congrats on becoming a mod. I love the new sig!
  • (2 Pages)
  • +
  • 1
  • 2