Jump to content

  • Log In with Google      Sign In   
  • Create Account


cannot clip the NPC


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 VanVan   Members   -  Reputation: 122

Like
Likes
Like

Posted 17 July 2001 - 10:23 PM

Sorry, can anyone tell me that i can only clip the bottom side of tile while i move the tile down, but i cannot clip the top side of tile while i move the tile up thanks regard!!! //*** D key if (GetAsyncKeyState(0x44)) { SPosY += 1; } //*** E key if (GetAsyncKeyState(0x45)) { SPosY -= 1; } RECT rcSrc {0, 0, 32, 32}; //If this tile is off the top of the screen... if (SPosY < 0) { rcSrc.top -= SPosY; } //If this tile is off the bottom of the screen... if ((SPRITE_DIAMETER + SPosY ) > SCREEN_HEIGHT) rcSrc.bottom -= SPosY + SPRITE_DIAMETER - SCREEN_HEIGHT; g_pDisplay->Blt( SPosX,SPosY, g_pAnimationSurface, &rcSrc);

Sponsor:

#2 TPH   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 July 2001 - 12:26 AM

Just a guess, shouldn''t "rcSrc.top -=" actually be "rcSrc.top +="?





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS