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.

DarkBASIC Professional Discussion / Advanced Sprite Control

Author
Message
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 23rd May 2010 20:12 Edited at: 24th May 2010 08:51
Problem resolved sorry for bother.Anything can happens when i whip the lazy brain cells

Where there is a will, there is a way.
I often edit my posts, that`s who i am
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 24th May 2010 01:51
I'm confused as to what you are trying to accomplish......can you possibly explain just a little more?

luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 24th May 2010 03:19 Edited at: 24th May 2010 05:57
I`m trying to build some system for control of sprites with mouse, without need of tracking of all the ID`s and care about which specific sprite you are working with.

The second snippet is the code i`m working with.There is a problem with it.When you press left ms button you pick a sprite and you are able to move it, but it loose if you move the mouse to fast.This doesn`t happend in the first snippet.

I used the first snippet pattern to build the second one including the 3rd one in it.If you compile them you can see.

There is more problems in the code, if you have more sprites and pick 1 moving it over others it picks them too.I`m possitive that this can be solved by me, i just need to get some sleep.

EDIT: Ok, i rewrited few stuff, strech my nervs few times and make it work at last.It was process of trial and failure + massive concentration.

Btw i write this for RPG inventory system, next step is the grid + connecting it to this, some work on grid repositioning based on inventory position.

Where there is a will, there is a way.
I often edit my posts, that`s who i am

Login to post a reply

Server time is: 2026-07-25 08:30:03
Your offset time is: 2026-07-25 08:30:03