Posted: Thu Mar 11, 2004 7:53 pm Post subject: (No subject)
Paul Bian wrote:
for the last program, how come it pauses for 1/3 of a second every 2 seconds on my screen?
don't get it? It works fine for me...maybe you are talking about something to do with delay? I did the switching positions thing with a timer, and I set it to switch blowing from one side to another every 2 secs.
WhatAmIDoing
Posted: Fri Apr 02, 2004 11:15 am Post subject: (No subject)
that is pretty good all though on the first one have the snow build up.
valor
Posted: Mon Apr 05, 2004 11:19 am Post subject: (No subject)
nice i was just expecting some little flakes to fall down but i was wrong. the background moving was a nice touch
Sponsor Sponsor
RaPsCaLLioN
Posted: Mon Apr 12, 2004 1:17 am Post subject: (No subject)
I'm bored.. minor improvement to first one...
code:
View.Set ("offscreenonly")
colorback (blue)
cls
type SnowType :
record
X, Y, Spd, Size : int
end record
var Snow : array 1 .. 100 of SnowType
for rep : 1 .. 100
Snow (rep).X := Rand.Int (5, 645)
Snow (rep).Y := Rand.Int (5, 475)
Snow (rep).Spd := Rand.Int (1, 6)
Snow (rep).Size := Snow (rep).Spd
end for
var iCount : int := 0
loop
delay (10)
for rep : 1 .. 100
Snow (rep).Y -= Snow (rep).Spd
if Snow (rep).Y < Snow (rep).Size then
Snow (rep).Y := Rand.Int (475, 575)
end if
if iCount = 4 then
Snow (rep).X += Rand.Int (-1, 1)
end if
drawfillstar (Snow (rep).X, Snow (rep).Y, Snow (rep).X + Snow (rep).Size, Snow (rep).Y + Snow (rep).Size, white)
end for
if iCount = 4 then
iCount := 0
else
iCount += 1
end if
View.Update
cls
end loop
the_short1
Posted: Mon Apr 12, 2004 2:28 am Post subject: (No subject)
... nice one rapscallion... size and speed diferences........ i havn;t seen u on... in what... years...you should check out my pac man game in FP contest forum...... i used ur 'following and attemp at colision' code in there for AI.... its pretty wicked....
NOTE: ur in credits....
RaPsCaLLioN
Posted: Mon Apr 12, 2004 2:54 am Post subject: (No subject)
cool.. i'll check it out, thx .. and as a side note.. the new Turing update blows
Prettyjnk
Posted: Thu Apr 29, 2004 3:48 pm Post subject: (No subject)
why always the last Update got problems? whats wrong?
the_short1
Posted: Thu Apr 29, 2004 6:10 pm Post subject: (No subject)
hmm...... i dont know,,,, maybe Rapscallion dont like it because it cant do 'Add.Gradient' anymore like it used to...
meh...
the new update acually ROCKS... cuz without it... my pacman game would suck SOOOO bad...
and both continue the program afta they start the music... therefore... no pause
back to the snowfall program..
i thinking of making one... should i post here???
*** i will try to make the flakes build up on bottom of screen
Raugrist
Posted: Fri Apr 30, 2004 4:49 am Post subject: (No subject)
the_short1, I think Prettyjnk was referring to the View.Update at the end. What version of turing are you running?
vertozia
Posted: Wed Jan 03, 2007 11:10 pm Post subject: (No subject)
hey there, i know this topic is old, but its general knowledge(i guess) that i dont know. How come when i draw pics on top of this amazing program, the program obscures my pics?