- Joined
- Jun 21, 2003
- Messages
- 169
- Trophies
- 0
- Age
- 36
- Location
- Montreal
- Website
- Visit site
- XP
- 216
- Country
Hi,
I'm trying to program the scrolling of a background (NDS) and it's working. The only problem is, when I continu to press on the left et we are at the limit, the background stop (ok) but the value of scrolling continu to decrease (not ok). I tryed put a condition if to bloc the value to zero but it didn't work.
there is a part of the code
CODEÂÂÂÂscrollx += (Pad.Held.Right - Pad.Held.Left);
ÂÂÂÂscrolly += (Pad.Held.Down - Pad.Held.Up);
ÂÂÂÂif(scrollx
I'm trying to program the scrolling of a background (NDS) and it's working. The only problem is, when I continu to press on the left et we are at the limit, the background stop (ok) but the value of scrolling continu to decrease (not ok). I tryed put a condition if to bloc the value to zero but it didn't work.
there is a part of the code
CODEÂÂÂÂscrollx += (Pad.Held.Right - Pad.Held.Left);
ÂÂÂÂscrolly += (Pad.Held.Down - Pad.Held.Up);
ÂÂÂÂif(scrollx