123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|429|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> text smudging across screen?

Fri, 04 Jun 2010, 13:40
ShadowIce
Hi all, why is this code making it so that its smudging the moving text?



is being called in:



which is being called in:



the Results_Text() is called when:



I need for it to update the text WITHOUT using cls, because its part of a menu.

And idk why it wont update.

its above flip
Fri, 04 Jun 2010, 13:48
Mog
Without using CLS, the buffers contents remain- ergo, anything previously left drawn remains on screen and will appear as through you smudged it. Why are you avoiding calling CLS, exactly?

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Fri, 04 Jun 2010, 14:13
ShadowIce
cuz no matter where i put cls, it makes a black background
thats why :S
Fri, 04 Jun 2010, 14:38
shroom_monk
Why don't you want a black background? If you want a different colour, try the ClsColor command to choose a custom CLS colour.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Fri, 04 Jun 2010, 14:40
ShadowIce
i dont want a background..

i want 2d text to slide across a 3d screen..
Fri, 04 Jun 2010, 14:48
Jayenkai
CLS clears the screen, then you redraw the 3D screen, then you put the text on top.
You do not "Move" the text.
You draw it again.

Like if you take your pen, and write "fish" on a piece of paper, then I tell you to write it again somewhere else on the page, the old one stays where it was.
You need a blank piece of paper (CLS) you need to redraw everything (renderworld) and then you can draw the text.

-=-=-
''Load, Next List!''
Fri, 04 Jun 2010, 14:49
ShadowIce
yes u move the text.

cuz i just got it to work.

thanks anyway
Fri, 04 Jun 2010, 15:21
shroom_monk
How can you move text? It's something that's drawn, not an entity, so I thought you always *had* to redraw it?

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Fri, 04 Jun 2010, 15:24
bram32
Well, basically you could move text, if you would use a sprite that is textured with a text. Else, indeed, you'd need to redraw it on each frame.
Sat, 05 Jun 2010, 05:35
ShadowIce
says u

i got it to work

w/o sprite

in 3d
Sat, 05 Jun 2010, 06:32
CodersRule
Yes, but you're redrawing the text each time. You can't actually 'move' it.
Sat, 05 Jun 2010, 08:11
ShadowIce
yes u can.

u move it on its x value. -.-
Sat, 05 Jun 2010, 08:14
Mog
....If you're calling TEXT within a loop, You're redrawing it. It's not a 'physical object' like a 3D model (which are still just shapes and lines drawn on this same buffer! they, too, can smudge), just a splotch on the imaginary painting canvas that you moved the brush X amount in whatever direction, and painted again.

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Sat, 05 Jun 2010, 08:16
shroom_monk
Yeah, each call to Text is a redraw. There is no 'text' entity, so it can't be moved by definition.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Sat, 05 Jun 2010, 08:17
ShadowIce
well w/e.

point is. i got it to work.

end of story
Sat, 05 Jun 2010, 08:23
Mog
And that's the end goal, but it's one thing to get something to work, and another to understand why it works. You should study these concepts deeply, since they're the bread and butter of your games operation.

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Sat, 05 Jun 2010, 13:51
bram32
Also, it could be nice if you told us how you solved it? In case somebody else with a similair problem reads this topic in the future.
Wed, 09 Jun 2010, 01:09
Stealth
ShadowIce well w/e.

point is. i got it to work.

end of story


If you're going to ask for help, don't be an arrogant prick.

The people who responded to your post are excellent programmers. They know what they are talking about. The fact that you wont listen is your problem.

-=-=-
Quit posting and try Google.