0 Members and 1 Guest are viewing this topic.
thats good ldea, causse I really like First-Person stuff.
This has actually come along quite nicely. Nice to see updates, I'll definitely download this. Nice work, Scout!
Yeah I was a bit busier so I didn't have time to try this game, as well as about 40 other games/versions I have saved on my computer desktop over the last month or so. I hate work schedules where you only have one day off at once instead of 2 in a row. X.x
Returning to topic, Racer3D: Replay is a bit dead now, I haven't worked on it for a week.I have an Axe Doubt now:I have Pic1 in coordenates(0,0,).Now, I want Pic1 to move 10pixels right, every time I press the key right (which is getkey(3)).I want it to move without any animation, just move. Any ideas?
:[38107C1010282828->Pic1:Pt-Change(0,0,Pic1:DispGraph:Repeat getKey->Z:End:If Z=2:Pt-Off(0,0:Pt-Change(0,10,Pic1:End
Quote from: ScoutDavid on November 27, 2010, 09:40:31 amReturning to topic, Racer3D: Replay is a bit dead now, I haven't worked on it for a week.I have an Axe Doubt now:I have Pic1 in coordenates(0,0,).Now, I want Pic1 to move 10pixels right, every time I press the key right (which is getkey(3)).I want it to move without any animation, just move. Any ideas?The first thing you need to consider is that the drawing of Pic1 at (0,0) is still there, even after you draw it again.So (unless you want the old one to remain) you have to do one of two things: (There might be more, these are the two that have occurred to me.)1) Store a copy of the screen before Pic1 was drawn at all to, say, L3 (the backbuffer). Draw Pic1. When you want to move Pic1, copy the backbuffer to the main buffer. This will effectively remove Pic1 from the screen. You can now draw Pic1 in its new location.2) When you want to move Pic1, redraw whatever was underneath it. (If it was a tile, redraw it. If you can't redraw it so easily, you'll have to find a way to "grab" what was being covered and draw that when Pic1 moves.) Pic1 is removed from the screen and you can redraw it.
:[38107C1010282828->Pic1:Pt-Change(0,0,Pic1:DispGraph:Repeat getKey(3):Pt-Off(0,0:Pt-Change(0,10,Pic1:End
Now, I want Pic1 to move 10pixels right, every time I press the key right (which is getkey(3)).