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.

Newcomers DBPro Corner / Until up front?

Author
Message
The Game Programmer
19
Years of Service
User Offline
Joined: 4th Dec 2004
Location: Sitting, and waiting, and staring, and..
Posted: 30th Jan 2005 09:55
I'm having some problems with positioning a sprite. I tell the sprite to go at the enemy's x+10 and the enemy's y+20 and the general problem is that it always stays +10 on the x and y, which doesn't really make sense because it only moves when the enemy does. I was thinking of trying to put until infront of the y so it would be something like: Until the sprite is made, the position is y+20, but that didn't work, is there some system of ifs that I could use?

Well, I'm trying aren't I.....

When Life gives you lemons make orange juice. Then sit back and wonder how it was done.
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 30th Jan 2005 22:24
Some code might be helpful

I should have changed my signature when asked
The Game Programmer
19
Years of Service
User Offline
Joined: 4th Dec 2004
Location: Sitting, and waiting, and staring, and..
Posted: 30th Jan 2005 23:04
Oh, sorry, ment to put that out.


I want to change it so it has the same affect as

So when the bullet exists, I want the y position to stop being the sprite2's y.

Well, I'm trying aren't I.....

When Life gives you lemons make orange juice. Then sit back and wonder how it was done.
The Game Programmer
19
Years of Service
User Offline
Joined: 4th Dec 2004
Location: Sitting, and waiting, and staring, and..
Posted: 31st Jan 2005 02:10
No help? Is it possible that this is somehow impossible?

Well, I'm trying aren't I.....

When Life gives you lemons make orange juice. Then sit back and wonder how it was done.
BenDstraw
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Arizona
Posted: 31st Jan 2005 02:43
If your trying to make the sprite move with another sprite and you have DBP you could just use the move sprite command. Use just like Move Object. If you use DBC your on your own! Cause I have no clue!

¤§Ben§¤
So your broke, no change. download from Black Lab its FREE*
http://www.geocities.com/blacklab_studios
The Game Programmer
19
Years of Service
User Offline
Joined: 4th Dec 2004
Location: Sitting, and waiting, and staring, and..
Posted: 31st Jan 2005 09:06
Um, tried that but it didn't exactly work the way I wanted it too, I'm going to go ahead and include all my source code.

I tried a different aspect but it didn't work either.


Is there something wrong with that code?

Thanks again for all the help!

Well, I'm trying aren't I.....

When Life gives you lemons make orange juice. Then sit back and wonder how it was done.

Login to post a reply

Server time is: 2024-09-23 10:19:10
Your offset time is: 2024-09-23 10:19:10