![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 1
Rep Power: 0
![]() |
Can someone help me
Hi there
Can someone help me. I am using Gwin, and I cannot make a blob move down, or right on a page. However I can make it move left and up. What am I doing wrong? Heres the code: case GwinKeyNames::CURSOR_LEFT: Gwin.setPenColour( GwinColourNames::WHITE ); Gwin.setFillColour( GwinColourNames::WHITE ); Gwin.circle( blobX, blobY, blobRadius ); blobX--; Gwin.setPenColour( blobColour ); Gwin.setFillColour( blobColour ); Gwin.circle( blobX, blobY, blobRadius ); break; If anyone could help, I'd be greatful. Making the Blob go up is easy, I just change it to blobY--; I'm new to programming and am stuck... so please help |
|
|
|
|
|
#2 |
|
Professional Programmer
|
I do not know what Gwin is, but this may still help. If blobX-- moves the blob left along the X axis, and blobY-- moves the blob up along the Y axis, then it seems that blobX++ (or incrementing blobX) would make the blob move right, and that blobY++ would make the blob move down. You can also use other operators, such as blobY+=20 to make the blob move 20 points down, and blobX-=5 to make the blob move 5 points to the left.
However, like I said, I do not know of Gwin, and this advice is simply based on the generic math operators provided in C++.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|