Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 29th, 2005, 2:56 PM   #1
CoolDude
Newbie
 
Join Date: Apr 2005
Posts: 1
Rep Power: 0 CoolDude is on a distinguished road
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
CoolDude is offline   Reply With Quote
Old Apr 29th, 2005, 8:27 PM   #2
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
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;}
iignotus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:55 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC