Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 INTRO>>007
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
beedub




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun May 18, 2003 4:51 pm   Post subject: (No subject)

use View.Update
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
beedub




PostPosted: Sun May 18, 2003 5:35 pm   Post subject: (No subject)

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




PostPosted: Sun May 18, 2003 6:42 pm   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
beedub




PostPosted: Sun May 18, 2003 8:59 pm   Post subject: (No subject)

ok... how do you do that?
Tony




PostPosted: Sun May 18, 2003 10:36 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
beedub




PostPosted: Sun May 18, 2003 11:05 pm   Post subject: (No subject)

why is the blue box there...??
Tony




PostPosted: Mon May 19, 2003 12:32 am   Post subject: (No subject)

just to show that crosshair is transparent and you can see stuff behind it
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
beedub




PostPosted: Mon May 19, 2003 7:28 am   Post subject: (No subject)

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




PostPosted: Mon May 19, 2003 11:47 am   Post subject: (No subject)

well ether resize the play window after getting the picture, or draw your own in a paint program.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
void




PostPosted: Mon May 19, 2003 11:57 am   Post subject: (No 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
beedub




PostPosted: Mon May 19, 2003 2:25 pm   Post subject: (No subject)

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




PostPosted: Mon May 19, 2003 3:02 pm   Post subject: (No 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...
Tony




PostPosted: Mon May 19, 2003 3:14 pm   Post subject: (No subject)

just like I told you before, you need to keep it as a transparent picture
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
beedub




PostPosted: Mon May 19, 2003 3:32 pm   Post subject: (No subject)

how do you do that?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 19 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: