Author Topic: Help for NEWBIES. NOTE: I am a newbie so I cant really help.  (Read 9618 times)

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
This is for people who have absolutley no idea what they are doing, like me  :blink:  :nw:

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4306
    • View Profile
    • Portfolio
Hi Blackout12,

welcome aboard, I see you flooded other topics on your quest for help, it is better keep your question focused on one forum topic (which you might create) other then hijack other forums with different topics unless it is quite similar.

Anyways, it seems you have problems with sprite and background, paste your question here I might be able to take a peek ;)

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
Hello erico, thank you for replying. I am having trouble loading my sprite and backround. this is the input that I am using to load my sprite that is not working:
LOADSPRITE "C:/folder 1/blackout",0
DRAWSPRITE 0, 300, 150
SHOWSCREEN
MOUSEWAIT
END

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4158
  • On the shoulders of giants.
    • View Profile
    • My Apps
You are not using the correct path to the image directory.

GLBasic automatically creates a directory called XXXXX.app (XXXXX is the name of your app) - make sure you put all media into the "Media" folder in  there (graphics and sound/music) and use the
Code: (glbasic) [Select]
SETCURRENTDIR("Media")that appears at the start of every new GLB code (just unquote it //)

Then just use -
Code: (glbasic) [Select]
LOADSPRITE "sprite.png",number
:)
I came. I saw. I played.

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
thank you, will do

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4158
  • On the shoulders of giants.
    • View Profile
    • My Apps
No worries, but as mentioned elsewhere, please open a new thread to ask a question and don't ask the same question in other threads. We really don't mind answering the same question one hundred times if it's asked 100 times in 100 new threads, but not in other people's unrelated threads.

We're good like that :)
I came. I saw. I played.

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
I am sorry for the repeated posts that were off-topic. (I got a little desperate)

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4158
  • On the shoulders of giants.
    • View Profile
    • My Apps
Don't worry. We've all been there :D
I came. I saw. I played.

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
This is the code I used, it didnt work. Im sorry Im such a nuisance  :giveup:
SETCURRENTDIR(Media)
LOADSPRITE "blackout.bmp" ,12
SHOWSCREEN
MOUSEWAIT
END

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
I realized I didnt have the DRAWSPRITE funtion. unfortnately, it didnt work...again. it said ***failed*** post this on forum, so I did:
SETCURRENTDIR(Media)
LOADSPRITE "blackout.bmp" ,0
DRAWSPRITE ,0 ,300,150
SHOWSCREEN
MOUSEWAIT
END

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4158
  • On the shoulders of giants.
    • View Profile
    • My Apps
Make sure you put "Media" in quotes (like I just did) and ensure your media actually is in the Media folder of your app.
I came. I saw. I played.

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
ok I will try that

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
SETCURRENTDIR "Media"
LOADSPRITE "blackout.png" ,0
DRAWSPRITE ,0 ,300,150
SHOWSCREEN
MOUSEWAIT
END

didnt work   O_O :blink:

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3371
  • Integrated Brain
    • View Profile
Hi blackout12  you only need patience and illusion for programming... and you can see the results, at the begin it's a bit complex, after a while really you enjoy a lot, and the good thing of GLbasic, you will program in a lot of languages.

I told you this, because when I start , I never program before, and I stay like you... now I think I have about 3 years in this Community, and I do anything I want think whit GLBasic... be patiently and work hard... not it's nothing complex, and all us are here for help you to you and another people... The forum have a lot of people very very smart programming and you can learn a lot... don't dismiss...

And Welcome from my part...
Iván J.

Offline blackout12

  • Mc. Print
  • *
  • Posts: 39
    • View Profile
Thank you mentalthink.