Computer Science Canada another game (for a friend) |
Author: | ecookman [ Wed Oct 29, 2008 7:59 am ] |
Post subject: | another game (for a friend) |
o.k i am working con a collab with a friend, A shooter-like program stage1) get procedures for mouse x and y (completed) stage2) make bad guys (completed) stage3) make a [dot] for croshair (need help) stage4) draw a dot on the screen at the mouse corr (need help) stage5)killing them (complete sorta need help on other 2 to make rest of protocalls) so if soeone could help us on stage 2 and stage3 that wold be greatly apprecieated version of turing (4.1.1) |
Author: | ecookman [ Wed Oct 29, 2008 8:00 am ] |
Post subject: | RE:another game (for a friend) |
srry if u can't read sign it says ill send the completed copy and some bits to the most helpful (the finished game will be available too) |
Author: | Warchamp7 [ Wed Oct 29, 2008 8:00 am ] |
Post subject: | RE:another game (for a friend) |
It would help if you posted exactly what you're having problems with and what you've tried |
Author: | ecookman [ Wed Oct 29, 2008 8:19 am ] | ||
Post subject: | RE:another game (for a friend) | ||
lol i don't have all of it we are building it in chuns and mashing it together but here is my part:
|
Author: | ecookman [ Wed Oct 29, 2008 8:20 am ] |
Post subject: | RE:another game (for a friend) |
ya so basically where: if x=90 and y=120 and button = left then drawfilloval(90, 120, 75, 75, red) is we want that to be the x and y of the mouse and to have the mouse to be a small cicrcl p.s. Full Metal Alchemist rules love u avvi |
Author: | CodeMonkey2000 [ Wed Oct 29, 2008 8:54 am ] |
Post subject: | RE:another game (for a friend) |
Please use either the code or syntax tags when you post code next time. And about your problem, I'm not sure what you mean. |
Author: | Warchamp7 [ Wed Oct 29, 2008 9:07 am ] | ||
Post subject: | Re: RE:another game (for a friend) | ||
ecookman @ Wed Oct 29, 2008 8:20 am wrote: ya so basically where:
if x=90 and y=120 and button = left then drawfilloval(90, 120, 75, 75, red) is we want that to be the x and y of the mouse and to have the mouse to be a small cicrcl What this code is going to do is draw a circle ONLY when the mouse is at x=90 and y=120 and when the mouse button is down. Just do
You'll need to couple this with a delay though for individual shots otherwise you can just drag the mouse around and rapidly fire. |
Author: | S_Grimm [ Wed Oct 29, 2008 9:24 am ] | ||
Post subject: | RE:another game (for a friend) | ||
what you need to do is this
|
Author: | ecookman [ Wed Oct 29, 2008 10:51 am ] |
Post subject: | RE:another game (for a friend) |
umm what is the z variable for |
Author: | ecookman [ Wed Oct 29, 2008 10:55 am ] |
Post subject: | RE:another game (for a friend) |
WOOT that worked now how do i mkae the mouse go away |
Author: | pkjr92 [ Wed Oct 29, 2008 12:05 pm ] | ||
Post subject: | Re: another game (for a friend) | ||
I already had a template made for these games. Here it is:
|
Author: | S_Grimm [ Wed Oct 29, 2008 1:35 pm ] |
Post subject: | RE:another game (for a friend) |
z is for the status of the button (ie if the mouse is clicked down or not.) |
Author: | [Gandalf] [ Wed Oct 29, 2008 6:40 pm ] |
Post subject: | Re: RE:another game (for a friend) |
ecookman @ 2008-10-29, 10:55 am wrote: WOOT that worked now how do i mkae the mouse go away
You can't. The mouse pointer is drawn by the Windows API, which Turing doesn't have access to. Of course, you could do it a roundabout way like Sys.Exec()ing a program that hides the mouse cursor for you, but that's more trouble than it's worth. |
Author: | ecookman [ Thu Oct 30, 2008 7:19 am ] |
Post subject: | RE:another game (for a friend) |
WELL THAT IS A PAIN INT THE BUTT but thanks now i can stop googling |
Author: | ecookman [ Thu Oct 30, 2008 7:41 am ] |
Post subject: | RE:another game (for a friend) |
HMMMMM just tinking is it possibl;e to load a background from a file to load it into turing |
Author: | S_Grimm [ Thu Oct 30, 2008 10:20 am ] | ||
Post subject: | RE:another game (for a friend) | ||
dont' double post. edit your first post. yes it is possible. look at the Turing help (F10). The command to searce is
|