[gameprogrammer] Re: Darkbasic: coordinates
- From: "DARKGuy ." <dark.guy.2008@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Tue, 27 Nov 2007 20:02:11 -0400
There is a lot of info for doing something similar in the DB codebase, it's
an algorithm that's been already used back since DB 1.13 had its enhancement
pack as a new thing back then, and DBPro was still a baby :P
On Nov 27, 2007 6:14 AM, Yasser Gonzalez Soto <yassergs@xxxxxxxxxxxxxxx>
wrote:
> Hello all of you.
>
> I need mathematic help.
>
> I want the cube move with the cursor but i dont get right arithmetical
> operation
>
> run this. Is not viruses.
> <?ui=2&ik=e92cfd03f9&attid=0.0.1.1&disp=emb&view=att&th=11681f8cfa108f1b>promess
>
> print "Esta aplicación detecta las coordenadas del mouse"
> suspend for key
> make object cube 10,10
>
> #oldx=0
> #oldy=0
> #pi=3.14
>
> position object 10,#ratx,#raty*-1,0
>
> do
>
> #ratx=mousex()+320
> #raty=mousey()+240
>
>
> position object 10,#ratx/10,#raty/10*-1,0
>
>
>
>
> loop
> suspend for key
> end
>
>
- References:
- [gameprogrammer] Darkbasic: coordinates
- From: Yasser Gonzalez Soto
Other related posts:
- » [gameprogrammer] Darkbasic: coordinates
- » [gameprogrammer] Re: Darkbasic: coordinates
- [gameprogrammer] Darkbasic: coordinates
- From: Yasser Gonzalez Soto