Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / mouse clicking to make a sprite appear

Author
Message
gold ferris
20
Years of Service
User Offline
Joined: 4th Aug 2004
Location:
Posted: 4th Aug 2004 23:50
I am having trouble posting a new thread, so i am going to do this here.

i am trying to make a board game where there are two player. one clicks an area of the screen and their designated sprite comes up. how do i do that code? i cant figure it out with the board, book, or teacher.

(DBPRO)
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 5th Aug 2004 00:47 Edited at: 5th Aug 2004 00:51
Off the top of my head psuedo code...
--
TAZ



BTW, these values are variables and you should set them in your initialization section of your program.

These are pixel locations on your screen: leftScreenArea, rightScreenArea, topScreenArea, and bottomScreenArea.

The variable spriteID is associated with the screen area and is created (and probably hidden or moved offscreen) before the game starts.

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1

Login to post a reply

Server time is: 2024-09-22 19:24:07
Your offset time is: 2024-09-22 19:24:07