Up and Left movement doesn't work
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
marcopolo

I'm new, I'm italian and I don't speak very well English.
I just now start with Verge, but the first beginner program "Hello World" doesn't work.
The movement down and right is working, but the movement up or left is continuous.
The code is:
while (!b3)
{
if (up)
{
y -= 1;
}
else if (down)
{
y += 1;
}
if (left)
{
x -= 1;
}
else if (right)
{
x += 1;
}
RectFill(0, 0, ImageWidth(screen), ImageHeight(screen), 0, screen);
PrintCenter(x, y, screen, 0, "Hello World!");
ShowPage(); // Displays the buffer on the screen
}

Seem that the "up" and "left" variables don't work.
I'm using the last Virge3 on Windows XP prof. (sp2) on a new Notebook DELL Latitude D620.
Also all other games and demos are the same problem.
Only the functions:
HookKey(SCAN_UP, "KeyDown_Up");
HookKey(SCAN_DOWN, "KeyDown_Down");
HookKey(SCAN_LEFT, "KeyDown_Left");
HookKey(SCAN_RIGHT, "KeyDown_Right");
are working.

Someone can help me? I prefere use "up" and "left" variabiles for compatibility.
Thanks a lot.

Posted on 2008-12-08 13:39:17

Overkill

Huh, I don't have any issues with that code here.

For me, it'll move continuously for whatever direction keys are held down. But it stops when I let go. And this is exactly how the code should work.

Up and left are what you should use, please don't ever switch to HookKey for movement stuff, oh dear god it's ugly.


So wait, every demo you've played has this problem? Are you sure it isn't just a problem with your laptop? Check that the drivers for your laptop are up to date. And I see you're at SP2, you should probably update that to SP3 while you're at it.

At any rate, I don't really know what the issues you're having are, but they aren't with Verge. It's something to do with your laptop.

Posted on 2008-12-08 15:28:28

marcopolo

You're right, the problem is the laptop, but it is working perfectly with everything application. It's regularry update from the administrator of my firm and there is not virus or keylogger. I work and play with a lot of software and the arrow key are working perfectly. Only with Verge I've the problem! (the effect is the same to have the up and left key pressed).
Maybe a different scancode of keyboard? Can I try to change the keycode of the "up" and "left" keys?
Why the HookKey function is working?
I'd tried to close many application, to run like win95, to change display risolution etc.
(the standard display risolution of this laptop is 1280x800).
Thanks for the answer.

Posted on 2008-12-08 15:54:15

marcopolo

I discovered that when I turn off the WiFi and BlueTooth, the Verge run correctlty. (my laptop has a switch to power on the Wifi and BT radio).
This is enough for me: Now I can use Verge!

a thank at Overkill and MerryChristmas at everyall.

Posted on 2008-12-08 17:08:48


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.