Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to stop the sprite's movement when it touches the edges of the screen?
Post: RE: How to stop the sprite's movement when it touc...

(May-13-2018, 03:31 PM)Raures Wrote: I'd do it this way, check if player's sprite x axis position + player's sprite width is lower than screen width, if it is, then move sprite to the right. Example...
mrmn Game Development 5 11,617 May-13-2018, 06:33 PM
    Thread: How to stop the sprite's movement when it touches the edges of the screen?
Post: RE: How to stop the sprite's movement when it touc...

(May-12-2018, 10:56 AM)Mark3232 Wrote: Hi I don't know how to solve your problem, however, it would make it easier for someone to help you if you used " insert python code" . you can read about i...
mrmn Game Development 5 11,617 May-12-2018, 12:49 PM
    Thread: How to stop the sprite's movement when it touches the edges of the screen?
Post: How to stop the sprite's movement when it touches ...

I created my first sprite with Pygame and managed to make it move with keyboard keys. However, when it encounters the edges of the screen, it keeps moving beyond them, disappearing from the screen. I ...
mrmn Game Development 5 11,617 May-12-2018, 10:42 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020