How scroll bar??

Non-platform specific questions.

Postby Troodon » Tue Apr 24, 2007 5:39 pm

:shock: :shock: :shock:
It's only about 5MB!
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Sgt. Sparky » Tue Apr 24, 2007 5:51 pm

xD
then send it to me! :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Troodon » Tue Apr 24, 2007 6:01 pm

Check your email. And don't send the whole package back when it's reade, caus I edit it daily. Just give me the instructions how to fix it. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Sgt. Sparky » Thu Apr 26, 2007 10:54 pm

make a variable, integer called drag,
on the mouse button down event of your scroller,
Code: Select all
drag = 1;

on mouse button up,
Code: Select all
drag = 0;

on the draw actor event of your scroller use,
Code: Select all
y = palkki.y;
if(change == 0 && x > palkki.x - palkki.width / 2)change = 1;
if(change == 1) {
populationLimit = distance(x, 0, palkki.x - palkki.width / 2, 0) / 4;
if(x < palkki.x - palkki.width / 2)x = palkki.x - palkki.width / 2;
if(x > palkki.x + palkki.width / 2)x = palkki.x + palkki.width / 2;
                        }
if(drag == 1 && xmouse > palkki.x - palkki.width / 2 && xmouse < palkki.x + palkki.width / 2)xscreen = xmouse;

:D
on this line you can change the /4 to whatever you want to get the value you want. :)
Code: Select all
populationLimit = distance(x, 0, palkki.x - palkki.width / 2, 0) / 4;

it worked on the .ged you sent me,
it has to work now. :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Troodon » Fri Apr 27, 2007 5:01 am

THANKS SPARKY! :D :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Sgt. Sparky » Fri Apr 27, 2007 2:14 pm

your welcome. :D

wow,
this took way longer than usual to fix untill you sent me the file.
:(
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron