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! / sprite problem

Author
Message
lokatsis
22
Years of Service
User Offline
Joined: 11th Feb 2004
Location: greece
Posted: 29th Apr 2004 22:35
hi i'd like to ask something about sprites. you see ihave a sprite
and i want to multiply my sprite to ten and place them to random places and also to move all in the same time from up to down.
i used for next but only the last is moving
like this:
for n=1 to 10
sprite n,x,y,1
next n
is that right for multipling the sprites?

THE AOOS
Scouseknight
22
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Bootle, Merseyside, UK
Posted: 29th Apr 2004 23:05
Can you post your entire code snippet - like the part that is adjusting the values of X and Y as well?

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th Apr 2004 23:11
Try something like this.......
sync on
do
for n=1 to 10
sprite n,x + n*32,y,1
next n

sync
loop

mess with the 32 until the distance is right.

Login to post a reply

Server time is: 2026-06-09 13:56:11
Your offset time is: 2026-06-09 13:56:11