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 / a noob needs help

Author
Message
PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 18th Apr 2006 04:54
face it i am a total noob at this, but i want to get better.
i made a square that can move around via arrow keys but i cant make it shoot

the following code is whats supposed to be shooting.

the shot appears on the screen but its not moving anywhere

i still need to make camera orientation but can someone at least tel me how to make the shot shoot, go forward (without me holding the space bar)

dont hate people who rip you off,cheat and get away with it, learn from them
PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 18th Apr 2006 05:17
never mind i somehow got it to work dont even know how

dont hate people who rip you off,cheat and get away with it, learn from them
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 20th Apr 2006 12:47
ok so i know u got this yourself but just so other people know how.... u needed to move the move object command out of the if statement, like
so....
from

to


ofcourse this will make it so that u can only fire once (because of the if object exist() command) and the bullet won't stop moving.

life's one big game
spec= 2ghz, 1gb ram, 512mb gpu, directx 9.0c, dbpro and classic
PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 2nd May 2006 16:27
maybe i can make multiple shooting projectiles which you can launch one after another and after they all reach a certain distance they can be returned and shot again.

well this is kinda complicated but is there a way to have it shoot for more than once?

dont hate people who rip you off,cheat and get away with it, learn from them
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd May 2006 16:44
learn about arrays. this way you can control a bunch of bullets with an array.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself 

Login to post a reply

Server time is: 2024-11-27 20:38:21
Your offset time is: 2024-11-27 20:38:21