16
Games / Re: Looking for some help in Terraria
« on: October 05, 2014, 01:31:22 PM »I lied, I didn't realize there was a Host & Play option. You did that and he still couldn't join?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
But now i'm connected by cable instead of a router
tell her to knock it off
ask your parents about it
avoid the slap
wear a scary mask all the time
tape a fake hand to your face for free high-fives
carry a spray bottle and spray her before she tries to slap you
say "HA! I blocked your hand with my face!" extremely loudly at her every time she does it
crawl everywhere across the ground for one day
get a really annoying app that plays a fart sound every time she slaps you
get a really annoying app that plays a crowd laugh track every time she slaps you
fall over on the floor and pretend to have died when she slaps you
fill your mouth with water and the next time she slaps you you'll spit it out all over her
or do all the above and see how far you get through the list before she stops
Well, first off, = is not a boolean operator.
What you meant to do was while(z == z), but which may as well be while(true)
Also, moving the window is going to be a very expensive operation. You should probably just put that right before the loop.
One last thing, I don't see a cout.
i'm not a c++ guy, but in my experience, assuming "cout" does what I think it does (writes to console window/stdout?) having a lot of those will slow your program down tremendously.
the simple solution is to make it run less often, like trinick suggested.
while (z = z)
{
x++;
y++;
if (x == xx)
x = (x - xx) * (-1);
if (y == yy)
y = (y - yy) * (-1);
MoveWindow(window,x,y,100,100,1);
Sleep(0);
}
The sleep is for troubleshooting reasons.