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 Discussion / I´ve got a spriteproblem in my little project!:/

Author
Message
Grey Werewolf
17
Years of Service
User Offline
Joined: 28th Feb 2008
Location:
Posted: 28th Feb 2008 17:07
Hi!

I´ve started with this little animation, but when I click the left mousebutton, then nothing happens. But if i click the left mouse button ten times or more, then finally it works.
Here the code:


Please help me!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Feb 2008 17:39 Edited at: 28th Feb 2008 17:40
Hmmm... it's obvious you are very new to programming as there are a number of very serious things wrong with your program and I'm not surprised it doesn't work. You simply can't do things like that!

Don't worry - everyone tends to start off attempting things they can't do and making a hash of it!

I would suggest that you learn the basics before attempting more advanced stuff.

Start with beginners tutorials 1 to 4 here:

http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

And just so you know:

* You shouldn't be using Load Bitmap
* And you certainly don't use Load Bitmap inside a loop
* You use Sync inside the loop
* You don't set the Sync Rate inside the loop
* You can't have a Do without a Loop
* You should indent your code to make it easier to read/follow

Serious, major flaws in your program there, but read the tutorials and you'll soon get the hang of it!

By the way, when you have read the tutorials, you should be able to write the whole of the above program in around 15 lines!

TDK_Man

Grey Werewolf
17
Years of Service
User Offline
Joined: 28th Feb 2008
Location:
Posted: 28th Feb 2008 18:42
Thanks for the nice help!
I´ll read the tutorials from your link and I hope, that I´ll get it.^^

Login to post a reply

Server time is: 2025-06-04 01:49:45
Your offset time is: 2025-06-04 01:49:45