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 / Sprite Collision Problem

Author
Message
Uechi
18
Years of Service
User Offline
Joined: 2nd Sep 2006
Location:
Posted: 7th Nov 2010 05:09
I have a 'scrabble' board made of sprites and a 'rack' of tiles to use. When I use the mouse to click on a tile in the rack and use sprite collision I can move the selected tile to a spot on the board. But if I click on that 'placed' tile to put it back in the rack I get the sprite number of the sprite beneath the letter tile and not the tile itself (which worked the first time from the rack). I have the sprites making up the board as priority 0 and the sprites from the rack as priority 1. How can I get the right sprite number when clicking on the letter when it is on the board?
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Nov 2010 08:36 Edited at: 7th Nov 2010 08:37
It's better to use an image for the board rather than made out of sprites. If you made the board out of sprites to make non-standard scrabble boards you can use PASTE SPRITE to create the board initially then grab the screen with GET IMAGE to keep the new board.

Uechi
18
Years of Service
User Offline
Joined: 2nd Sep 2006
Location:
Posted: 7th Nov 2010 15:54
Thanks, Grog. That worked great.

Login to post a reply

Server time is: 2024-11-23 07:54:42
Your offset time is: 2024-11-23 07:54:42