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.

Newcomers DBPro Corner / Creating same sprite multiple times....possible?

Author
Message
Hatebreed
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location:
Posted: 13th Dec 2007 02:54 Edited at: 13th Dec 2007 03:19
Hey guys,

Im working on a project for a game design class and I wanted to experiment with it and see if instead of only having one image "falling" along the Y axis I was going to try to have that same image randomly appear at the top and fall down the Y axis. I have found that this is harder then I thought. My instructor said to you use "clone sprite" command but did not instruct me on how to use it. So its been about 3 hours now and I have not gotten anywhere but the origional assignment.

If anyone could point me in the right direction of the type of code to use or a small "code Snippet" it would help me out a lot.

Thanks

P.S I am using darkBASIC Pro, I also have attached the code for the program im trying to make.

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 13th Dec 2007 03:18 Edited at: 13th Dec 2007 03:19
the code "file"/attachment is null. nada. nothing there.
just paste your code as a snippet and we'll look at it.

edit: now the initial question has disappeared... weird.

Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
Hatebreed
17
Years of Service
User Offline
Joined: 18th Sep 2007
Location:
Posted: 13th Dec 2007 03:20
Its because I edited the document and because I am new to forums they are reviewing what I post...
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Dec 2007 16:55
WK is correct. Where you have:

paste image IMG_PACMAN, pacmanX, pacmanY

try

Sprite 1,pacmanX,pacmanY,IMG_PACMAN

Then look up cloning sprites in the help files.

TDK_Man

Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 15th Dec 2007 05:44
also, you can just paste the sprite over and over using "paste sprite"


Login to post a reply

Server time is: 2024-11-25 09:58:27
Your offset time is: 2024-11-25 09:58:27