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 / Many simple questions...but not to me :-)

Author
Message
Azach
21
Years of Service
User Offline
Joined: 23rd Apr 2003
Location:
Posted: 17th Sep 2003 12:56
Hi there,
i have some newbie questions. Because i don't want to spam the board i'll just post them all in here


*** Key questions: ***

*** 1 ***

I want to raise my particle velocity when pressing "v" and lower it when pressing"shift+v".

so if my partcile velocity variable is pV# i was trying to do something like this:

(the scancodes are wrong...but i don't have them on me now....for "v" i use "1" and "shift"

is "2".

set particle velocity 1, pV#
if keystate(1)=1 then pV#=pV#+1
if keystate(1) and keystate(2)=1 then pV#=pV#-1

Raising the velocity works...but lowering doesn't.
How can i make it that multiple keypresses are recorded?

*** 2 ***

Also, when i raise the velocity when pressing "v" it goes up VERY fast.
What i want is that when i press "v" that pV# is raised by one and when i keep pressing the

"v" nothing happens. So for every point i want to raise i want to push the "V" every time.
Is this possible?


*** matrix question ***

Can i create a matrix with refelections? (Blitz has a mirror code for example for a plane).

*** particle question ***
*** question 1 ***

Is it possible to change the particle size? I noticed that when i use large images (2024x

2024) the particles get bigger too. But i want to use normal 256x256 and change the scale.

Something like "scale particles" or "set particle size".

Right now my particles look bad (especially when i need huge clouds of smoke).

*** question 2 ***
When i put my particles in a level they look bad. When for example my particle is behind a

window and it's bottom behind a wall, then the upper part will be bright (like the window)

and the lower dark (like the wall). Can i change it that my particles look the same ? (is

this simply settign an ambient for the particle object?).



Well i think tahts it...for now

Hope you can help.

Thx
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 17th Sep 2003 13:41
1 & 2

this bit of code:

if keystate(1)=1 then pV#=pV#+1
if keystate(1) and keystate(2)=1 then pV#=pV#-1

if you press shift-v it increases pv# by 1 then decreases it by 1

change to:

if keystate(1)=1 and keystate(2)=0 then pV#=pV#+1
if keystate(1) and keystate(2)=1 then pV#=pV#-1


to make it go up once for each keypress do something like this:

if keystate(1)=0 then keypressed=0

if keystate(1)=1 and keystate(2)=0 and keypressed=0
keypressed=1
pv#1=pv#1+1
endif
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 17th Sep 2003 14:25
there isn't an easy way to do reflection on a matrix. but it is probably possible


Login to post a reply

Server time is: 2024-09-21 01:14:10
Your offset time is: 2024-09-21 01:14:10