# Constrain() player movement not working

**URL:** https://discourse.processing.org/t/constrain-player-movement-not-working/10199
**Category:** Processing.py
**Created:** [April 11, 2019, 9:56pm UTC](https://discourse.processing.org/t/constrain-player-movement-not-working/10199 "2019-04-11T21:56:48Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [April 11, 2019, 10:29pm UTC](https://discourse.processing.org/t/constrain-player-movement-not-working/10199/2 "2019-04-11T22:29:18Z")

</div>

I’ve got this “Player Move” sketch from an old post of yours. Maybe it can help you a lil’: 😀

> [@Player movement laggy](https://discourse.processing.org/t/player-movement-laggy/7366/2):
>
> Inspired by my old Java Mode “Player Move”: coffee[Studio.ProcessingTogether.com/sp/pad/export/ro.91tcpPtI9LrXp](http://Studio.ProcessingTogether.com/sp/pad/export/ro.91tcpPtI9LrXp) I’ve made a Python Mode version “Paddle Move”:snake """ Paddle Move (v1.0.2) by GoToLoop (2019-Jan-09) https://Discourse.Processing.org/t/player-movement-laggy/7366/2 http://Studio.ProcessingTogether.com/sp/pad/export/ro.91tcpPtI9LrXp """ BG = 0350 def setup(): size(800, 600) colorMode(RGB) rectMode(CORNER) fill(Paddle.INK) stroke(Paddle.OUTLINE) …

---

_[View the full topic](https://discourse.processing.org/t/constrain-player-movement-not-working/10199)._
