Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Can someone plz help me wit my 2d animation!!!!!!!

Author
Message
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 5th Nov 2004 10:47
right now im just tryin to get megaman to switch to a shooting image and shoot a ball when i press the enter key. but when i do so i can only shoot the ball once and theres 2 sprites on the screen!
plz help. Im only 13 for cryin out loud!


Ilya
20
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 5th Nov 2004 11:12
Why'd you put endfunction in your code without declaring a function?

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"


Quote: "We shouldn't sacrifice the truth to preserve "balance"."
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 5th Nov 2004 11:48
Im sorry dudes!!! I didnt copy all the code. Well heres all of it!!!


Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 5th Nov 2004 11:50
Is that bettah?
Tapewormz
21
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 7th Nov 2004 23:14 Edited at: 7th Nov 2004 23:25
Why would age have anything to do with anything? When I was 10 I had my first program published in Computes Gazette magazine. They cut me a cheque for 50$ US which is alot of money when you're a kid way back in 1981.

The problem with DarkBASIC Professional is that it lacks really good doccumentation. There was mention by TGC several months ago that a new manual was in the works.

I think that when a new manaul arrives on the scene, it may clear up alot of problems. The best manual I ever used was my commodore vic 20 manual. Every command had an example of how it was to be used, even if it was only a 1-10 line example. Larger examples tend to confuse people.

As for your code:

These lines should be at the top of the code and not constantly called in your function.

load image "megamanstill.bmp", 1
load image "megamanshootingwoball.bmp", 2
load image "megamanshot.bmp", 3

Also, your leftkey and rightkey routines should be moved into your main loop, not your function. All you should put in your function is the shoot routine.

You should structure your program like so:

set screen mode
set sync
declare variables
load images
load sprites
load sounds

begin main loop
get player input
process player input
call functions
update graphics
sync screen
end main loop

move function
shoot function

Now, I'm not going to program this for you. You won't learn anything from that. Instead follow this structure, and re-arrange the code you already have to fit it. Then repost your source and I'll look at it.

Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 9th Nov 2004 06:06
k thanks
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 11th Nov 2004 01:31
heres my new and improved code but i still need alot of help.



Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 11th Nov 2004 07:50
first of all sprite 2 hardly show up at all. can some 1 plz help
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 12th Nov 2004 06:54
k i got some animation goin wit the legs when u go right. but its not very good. heres the code:



Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 12th Nov 2004 21:31
the animation is comin along slowly but surely. it looks good but the sprite doesnt move far enough to the right when he animates or sumtin like that. and i still cant figure out the problem of the shooting. but heres the new code:



Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 12th Nov 2004 21:32
oh and heres the pics for the animation. pic 1.

Attachments

Login to view attachments
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 12th Nov 2004 21:33
pic 2

Attachments

Login to view attachments
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 12th Nov 2004 21:33
pic 3

Attachments

Login to view attachments
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 12th Nov 2004 21:34
pic 4

Attachments

Login to view attachments
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 13th Nov 2004 05:37
oh and u can download the other pics for the shooting and standing here: http://forum.thegamecreators.com/?m=forum_view&t=42224&b=7
Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 15th Nov 2004 06:42
hey heres some better code for anybody who wants to help me with it. I'll post the new images soon.



Qwisats Haderach
19
Years of Service
User Offline
Joined: 23rd May 2004
Location: Dune
Posted: 17th Nov 2004 00:30
k heres more code. and the hole sprite sheet.



Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-05-02 16:22:32
Your offset time is: 2024-05-02 16:22:32