Jump to content
  • Advertisement

saurabh singh

Member
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About saurabh singh

  • Rank
    Newbie

Personal Information

  • Role
    Programmer
    UI/UX Designer
  • Interests
    Design
    Education
    Programming

Social

  • Github
    ssg2526

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi everyone, I am new to game development and currently working on a sprite based 2d side view game. I am writing in c++ using sdl2. Currently i am taking a clip and rendering it for multiple frames and then i change the clip. For example if ihave 4 clips for run animation so i am running each clip for 5 frames (@60 fps) so basically it takes 20 frames to complete a run animation. Similarly i have jump and shoot animations with 3 clips each. But the problem is once an animation is running i am disabling all the keys. So basically when i shoot while running the player will stop and then shoot. Once the animation is completed then i have to click the button again to start running, but what i want my player to start running automatically once the animation is over and i my forward button is not keyed up.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!