Posted: Fri Jan 11, 2008 5:49 pm Post subject: RE:Pictures
What do you mean?
Nick
Posted: Fri Jan 11, 2008 6:53 pm Post subject: RE:Pictures
for x:orbx.. mousex
orbx:=mousex
end for
Tony wouldn't it be better to rather increase the orb x and y each run through the main loop to make it look cleaner?
yusong
Posted: Fri Jan 11, 2008 7:38 pm Post subject: RE:Pictures
So... How do i do say, from one point to another, that is not on a line or diagonal?
Nick
Posted: Fri Jan 11, 2008 7:41 pm Post subject: RE:Pictures
hmmm I'll see if I can find some old code that you can learn from
EDIT:
found some
Turing:
process moveGuy1
if chara (1)=truethen
anox := x%this is old code I'm sorry for the
anoy := y%poor structure and x and y are mouse location loop%also you probably don't want a process sso try to switch into a procedure if anox > movex then
movex := movex + 1 elsif anox < movex then
movex := movex - 1 endif if anoy > movey then
movey := movey + 1 elsif anoy < movey then
movey := movey - 1 endif exitwhen movex = anox and movey = anoy
%delay (2) endloop endif
onlyOnce :=false end moveGuy1
also please note I no longer write like this and cannot believe I ever had :S
yusong
Posted: Fri Jan 11, 2008 8:13 pm Post subject: RE:Pictures
kk, THX
but, it is a 2D Tile game, so, whenever I click, it just stops and the pic does not show.
how do i stop that?