Computer Science Canada

INTRO>>007

Author:  beedub [ Sun May 18, 2003 3:36 pm ]
Post subject:  INTRO>>007

you know how in 007 they always have those beginnings where the aimer is there and then the it moves and once it goes over the person... blood comes down. Well i am done it ... but i have a few problems.. the code for the aimer is right here...
code:
drawoval (320, 200, 150,150, black)
drawline (170, 200, 470, 200, black)
drawline (320, 350, 320, 50, black)
drawfill (1,1,black,black)

as you can see if i move the aimer... the drawfill will come in after it... but if i make the drawfillfirst... you cant see the aimer

Author:  Tony [ Sun May 18, 2003 4:51 pm ]
Post subject: 

use View.Update

Author:  beedub [ Sun May 18, 2003 5:35 pm ]
Post subject: 

the problem is it doesnt alow to me to look through the crosshair as if i were sniping some1..

Author:  Tony [ Sun May 18, 2003 6:42 pm ]
Post subject: 

well it would work if you draw your crosshair with black around it as a transparent picture. That would show the background image behind it.

Author:  beedub [ Sun May 18, 2003 8:59 pm ]
Post subject: 

ok... how do you do that?

Author:  Tony [ Sun May 18, 2003 10:36 pm ]
Post subject: 

well you save image as picture and move around with your mouse...

code:

drawoval (320, 200, 150,150, black)
drawline (170, 200, 470, 200, black)
drawline (320, 350, 320, 50, black)
drawfill (1,1,black,black)

var picID:= Pic.New(0,0,maxx,maxy)
cls

var x,y,b:int

loop
cls
drawfillbox(600,300,700,400,blue)
Mouse.Where(x,y,b)
Pic.Draw(picID, x,y, picMerge)
end loop


this gotta be the shittiest example I've done, but it somewhat works...

ofcourse you'd have to have a large picture and adjust X/Y values... and insert View.Set... but you should get it from here

Author:  beedub [ Sun May 18, 2003 11:05 pm ]
Post subject: 

why is the blue box there...??

Author:  Tony [ Mon May 19, 2003 12:32 am ]
Post subject: 

just to show that crosshair is transparent and you can see stuff behind it

Author:  beedub [ Mon May 19, 2003 7:28 am ]
Post subject: 

ok coo;... and how do i make the box black box that is around the crosshair biger?

Author:  Tony [ Mon May 19, 2003 11:47 am ]
Post subject: 

well ether resize the play window after getting the picture, or draw your own in a paint program.

Author:  void [ Mon May 19, 2003 11:57 am ]
Post subject: 

here...maybe this might help more...i dunno tonys thingy made my comp lag...maybe my comp is really crappy....hmmmm.... watev...i like it....
code:

var w := Window.Open ("fullscreen,nocursor")
var x, y, b : int
colorback (black)
cls
loop
    Mouse.Where (x, y, b)
    drawoval (x + 100, y + 100, 100, 100, 10)
    drawline (x + 100, y, x + 100, y + 200, 10)
    drawline (x, y + 100, x + 200, y + 100, 10)
    delay (10)
    drawoval (x + 100, y + 100, 100, 100, 256)
    drawline (x + 100, y, x + 100, y + 200, 256)
    drawline (x, y + 100, x + 200, y + 100, 256)
end loop

Author:  beedub [ Mon May 19, 2003 2:25 pm ]
Post subject: 

is there ne way to make it tansparent within the circle?

Author:  beedub [ Mon May 19, 2003 3:02 pm ]
Post subject: 

the other thing is that i dont want to be able to move the aimer.. i want it to move by itself.... i can do that fine... its just.. i dont know how to make the circle transparent with the 2 lines in it... and still make it move...

Author:  Tony [ Mon May 19, 2003 3:14 pm ]
Post subject: 

just like I told you before, you need to keep it as a transparent picture

Author:  beedub [ Mon May 19, 2003 3:32 pm ]
Post subject: 

how do you do that?

Author:  Tony [ Mon May 19, 2003 3:48 pm ]
Post subject: 

i already posted a sample code of how to do that... Confused

Author:  beedub [ Tue May 20, 2003 5:44 pm ]
Post subject: 

alright perfect... i wanna post the intro.. but it says i cant post .wav files... what do i do?

Author:  Tony [ Tue May 20, 2003 5:45 pm ]
Post subject: 

you zip up all the files and post a single .zip instead.

Author:  beedub [ Tue May 20, 2003 5:59 pm ]
Post subject: 

ok


: