Qbasicnews.com
April 09, 2020, 07:26:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Making animations in Screen 12  (Read 2277 times)
Wing
New Member

Posts: 7


« on: March 04, 2003, 03:55:33 PM »

How do i make an animation i use screen 12
Logged

ell Free To Fly
Fell Free To Help Me
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #1 on: March 04, 2003, 10:53:25 PM »

What kind of animation? Sprites? Vectorial? Scroller? Raster effect?

Maybe you just need to know which commands are used for graphics... Look CLS, LINE, PAINT, CIRCLE, DRAW, PSET, PUT, GET in QB help, and follow the links.
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Neo
Na_th_an
*****
Posts: 2150



« Reply #2 on: March 05, 2003, 08:04:28 AM »

First start with static sprites if you do not have any knowledge about them yet
Logged
Wing
New Member

Posts: 7


ok
« Reply #3 on: March 05, 2003, 03:01:24 PM »

i know all this commands but is it only to put an image over the other with put
Logged

ell Free To Fly
Fell Free To Help Me
Neo
Na_th_an
*****
Posts: 2150



« Reply #4 on: March 06, 2003, 07:22:26 AM »

Yes, that sort of animation is called sprite animation. Wink
Logged
Zap
Been there, done that
*****
Posts: 1124


« Reply #5 on: March 06, 2003, 11:34:58 AM »

Too animate in screen 12 using sprites, you simply:

1: Draw the image
2: Wait (Animation delay)
3: Deleting the image (Not using CLS, but drawing it over with the background colour)
4: Draw image at new position, and repeat 2-4.

But i would suggest you use a mode with pages (ie. mode 7), or a hi-res/many colours gfx library if you need higher resolution (DirectQB for a start).

/Zap
Logged

url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #6 on: March 07, 2003, 08:06:26 PM »

IN OTHER WORDS

do something like this

Code:

'Able to move a circle around on the screen using w,s,a,d
x = 50
y = 50
'starting coordinates...near upperleft
DO
press$ = inkey$
'using inkey$ by itself does not work too good.
line (x+2,y+2)-(x-2,y-2),0,bf
circle (x,y),2
paint (x,y),2
if press$ = "w" and y > 0 then y = y - 2
if press$ = "s" and y < 480 then y = y + 2
if press$ = "a" and x > 0 then x = x - 2
if press$ = "d" and x < 640 then x = x + 2
LOOP until press$ = "q"


Well, this was not exactly my idea, you can find some of the most helpful information about QBASIC in my opinion at www.Qbasicnews.com and by clicking on the tutorials section (where I got this coding [or at least the basis for it])
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
rCX
Member
*
Posts: 32


« Reply #7 on: March 07, 2003, 08:11:28 PM »

This very large graphics tutorial was writen by "TheBOB".  It has alot of examples on how to make animations in SCREEN 12.  I havn't read through the whole thing yet but I think this might be what you are looking for.

The tutorial (To start tutoral: Click on qbg.exe)
Utilites and sorce code
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!