Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this->stickRelX < -30) {
- if (this->stickXDir == -1) {
- this->inputTimerX--;
- if (this->inputTimerX < 0) {
- this->inputTimerX = 2;
- } else {
- this->stickRelX = 0;
- }
- } else {
- this->inputTimerX = 10;
- this->stickXDir = -1;
- }
- } else if (this->stickRelX > 30) {
- if (this->stickXDir == 1) {
- this->inputTimerX--;
- if (this->inputTimerX < 0) {
- this->inputTimerX = 2;
- } else {
- this->stickRelX = 0;
- }
- } else {
- this->inputTimerX = 10;
- this->stickXDir = 1;
- }
- } else {
- this->stickXDir = 0;
- }
- if (this->stickRelY < -30) {
- if (this->stickYDir == -1) {
- this->inputTimerY -= 1;
- if (this->inputTimerY < 0) {
- this->inputTimerY = 2;
- } else {
- this->stickRelY = 0;
- }
- } else {
- this->inputTimerY = 10;
- this->stickYDir = -1;
- }
- } else if (this->stickRelY > 30) {
- if (this->stickYDir == 1) {
- this->inputTimerY -= 1;
- if (this->inputTimerY < 0) {
- this->inputTimerY = 2;
- } else {
- this->stickRelY = 0;
- }
- } else {
- this->inputTimerY = 10;
- this->stickYDir = 1;
- }
- } else {
- this->stickYDir = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement