Computer Science Canada

making a picture move around the cursor

Author:  white_dragon [ Sat May 15, 2004 10:41 am ]
Post subject:  making a picture move around the cursor

i got the part where a picture moves around the cursor but i dunno how i can use two pictures move around.............. like i have one pic of a normal target and another one on an angle so it looks like one of the rotating pics. dunno how i can explain this more.............. if u played the game in the arcade where ur a sniper person n ur scope moves around....... yeah that's bout it this is all i have so far



the first picture and the second picture is the ones i want rotated around each other.

Author:  white_dragon [ Sat May 15, 2004 10:43 am ]
Post subject: 

also, can i center the window in the middle of the screen.
btw here r the pics

Author:  white_dragon [ Sat May 15, 2004 10:44 am ]
Post subject: 

ummmmmmmmmmmmmmmmmmmm i'm not sure why the pics aren't being uploaded

Author:  white_dragon [ Sat May 15, 2004 10:49 am ]
Post subject: 

i'll try again

[img]C:\Documents and Settings\user2\Desktop\Target.bmp[/img]

[img]C:\Documents and Settings\user2\Desktop\Target 2.bmp[/img]

Author:  white_dragon [ Sat May 15, 2004 10:50 am ]
Post subject: 

i'm not really sure how u upload a pic

Author:  Mazer [ Sat May 15, 2004 11:21 am ]
Post subject: 

You have to attach it. The img tags are only for pics that are already hosted somewhere. And your question makes no sense.

Author:  MyPistolsIn3D [ Sat May 15, 2004 11:28 am ]
Post subject: 

post yer pics

Author:  MyPistolsIn3D [ Sat May 15, 2004 1:06 pm ]
Post subject: 

What you mean by rotated around each other?

Author:  MyPistolsIn3D [ Sat May 15, 2004 1:14 pm ]
Post subject: 

this maybe?

Author:  Dan [ Sat May 15, 2004 1:49 pm ]
Post subject: 

white_dragon wrote:
ummmmmmmmmmmmmmmmmmmm i'm not sure why the pics aren't being uploaded


you can not upload .BMP type pics, u can tho zip them in to one file and upload them. The reason we have bmp file format turned off is that they are much bigger then all the others and there used to be (not shure if there still is) a way to inject code in to them to screw over this site and/or poleop who download them.

Author:  white_dragon [ Sat May 15, 2004 4:14 pm ]
Post subject: 

oh......i see

well. last try. i changed the source so it's easier to understand what i'm tryin to achieve.


basically i want that without the lag. but at the same time the moving cursor target thing.

Author:  SuperGenius [ Sat May 15, 2004 10:22 pm ]
Post subject: 

Dan, what could be the possible result of subversive code in a .bmp?

Author:  Dan [ Sat May 15, 2004 11:40 pm ]
Post subject: 

white_dragon wrote:
oh......i see

basically i want that without the lag. but at the same time the moving cursor target thing.


i am not shure what u whont, may be somting like this:

code:

setscreen ("graphics:600;500,nobuttonbar,offscreen")
var x, y, button : int := 100
var target : int := Pic.FileNew ("Target.bmp")
var angle : int := 0;

var pics : array 1 .. 10 of int

for i : 1 .. 10
    pics (i) := Pic.Rotate (target, angle, x - 63, y - 67)
    angle += 36
end for

Pic.Free (target)

var ii : int := 1

loop
    cls
    Mouse.Where (x, y, button)
    Pic.Draw (pics (ii), x-32, y-34, picMerge)
    ii += 1
    if ii > 10 then
        ii := 1
    end if

    View.Update
    delay(50)
end loop


i use offscreen and view.update to try to make it look better and may be get ride of that lag u talking about and i used rotate to make diferent verson of the pic so it could be animated. Not shure if that is what u whonted tho.



As for the bmp thing, it is posable to do malishes things to BMPs so poleop whit IE will have IE run some code. That code could be anything from a virus to instaling spyware to trying to steal your pass for somting.

Author:  the_short1 [ Sun May 16, 2004 12:23 pm ]
Post subject: 

crzy... yea why have al;l that used webspace for /bmp when u can zip and the zip ratio is like 90%

malicous... thats crzy... they prob fixzed by now... but keep it like it is..


what about a .gif ???cuz if u want to use a .gif in turing see my GIF turoial in the turorial section...

Author:  white_dragon [ Sun May 16, 2004 4:51 pm ]
Post subject: 

tks dan. that was sorta what i was lookin for.


: