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.

2D All the way! / Need help with my game idea

Years of Service
User Offline
Joined: 12th Nov 2010
Location: Angola, IN
Posted: 13th Nov 2010 05:39
I am working on a 2D game using DarkGDK and I need to figure out how to do something. It is for a class and my book doesn't say how to do it.

The issue at hand. I'm trying to make a sprite appear at a certain point on another sprite. It is a basic game almost like Space invaders for those of us that are old enough to remember it.
DBPro Master
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Nov 2010 07:41
So position one sprite on the other.
Maybe you need to give us more info to figure out what exactly you can't figure out. Do the sprites not overlap in the correct order every time? If so, look at the sprite priority command.

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein
Years of Service
User Offline
Joined: 14th Oct 2010
Location: The sewer.... hunting alligatiors.
Posted: 5th Jan 2011 01:29
....Maybe you mean you need some info on alpha channel???... Hmm

Years of Service
User Offline
Joined: 11th Aug 2010
Location: LU
Posted: 22nd Mar 2011 05:27
Are you saying that you want to position one sprite relative to another?
This would be used when a ship fires its weapons.
I program in C++, but the languages are similar when it comes to the Dark GDK commands.
I would use:

to position a shot in C++.
This should be close to basic.
I guess it would be like this:

Login to post a reply

Server time is: 2024-02-22 04:42:36
Your offset time is: 2024-02-22 04:42:36