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.

Dark GDK / Help with REALLY basic problem...

Author
Message
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 2nd Jul 2009 12:10
How come my image won't move?



Any help would be appreciated
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 2nd Jul 2009 12:16
Because you don't move it anywhere in your code? You seem to be moving object 1 though, even though you haven't created any objects. Try calling dbSprite again with a different location.

Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 2nd Jul 2009 12:21
In DarkGDK, each kind of "entity", be it a Sprite, a 3D object, an Effect, an Image, or whatever, each different kind of thing's ID number is independant..

In those things I said above, you could have each of those Identified by the number 1, and it would be ok if they were all in your program.

Also, a sprite is an independant entity from a 3d object, the position object commands only affect 3dobjects. Have a look through the GDK help file, at the different command categories, the Sprite commands are the ones you are after to move your sprite.

If it ain't broke.... DONT FIX IT !!!
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 2nd Jul 2009 12:32 Edited at: 3rd Jul 2009 01:11
Oh haha, I guess I made this mistake because I'm not used to working in 2D, all of my other projects have been 3D
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 2nd Jul 2009 12:33
It still doesn't move at all
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 2nd Jul 2009 17:13
Show your new code.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Bubzy
15
Years of Service
User Offline
Joined: 29th Jun 2009
Location: somewhere
Posted: 2nd Jul 2009 18:11
you could try something like



Hope this works, am at work, so i cant test it on a compiler.

void void void void void void void
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 3rd Jul 2009 01:13
This is my code:

Bubzy
15
Years of Service
User Offline
Joined: 29th Jun 2009
Location: somewhere
Posted: 3rd Jul 2009 01:27
dbPositionImage() isnt a command in dgdk

void void void void void void void
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 3rd Jul 2009 01:43 Edited at: 3rd Jul 2009 01:43
Try putting dbSprite() in your loop, instead of dbPositionImage().
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 3rd Jul 2009 01:57
Thanks, that fixed it!
Noam Rodrik
15
Years of Service
User Offline
Joined: 4th Aug 2009
Location:
Posted: 10th Aug 2009 10:16
Now can You POST YOUR SCRIPT?

NoamRodrikXX22
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 10th Aug 2009 14:28
What are YOU ON?


Your signature has been erased by a mod
Noam Rodrik
15
Years of Service
User Offline
Joined: 4th Aug 2009
Location:
Posted: 10th Aug 2009 15:12
What do YOU MEAN?

NoamRodrikXX22

Login to post a reply

Server time is: 2024-10-01 10:29:51
Your offset time is: 2024-10-01 10:29:51