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.

AppGameKit Classic Chat / Clone of sprites

Author
Message
Botchling
8
Years of Service
User Offline
Joined: 7th May 2016
Playing:
Posted: 18th May 2016 10:47
*Sorry for my english*
Hello friends, i am try to do platform game. I have floor block. When i using createsprite(block) and then setspriteposition(block,0,100) its there. when i using setspritepositon(block,0 120) it moves there, and a new one isnt created. How may i do this? thanks
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 18th May 2016 14:03
You have to createSprite() for each sprite that you need.
You will need a unique ID for each sprite, so do not use "block" for each sprite.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 18th May 2016 14:05
Quote: "and a new one isnt created. How may i do this? thanks"

You need to create a new sprite the same way you created the first one, then position that.

Login to post a reply

Server time is: 2024-09-29 15:20:28
Your offset time is: 2024-09-29 15:20:28