Page 1 of 1
Changing entity properties in script
Posted: Sat Sep 23, 2006 1:22 pm
by Larryboy
I seem to be clogging up this forum with my questions....sorry
This is probably really easy question but I can't find the answer after looking for a while.
I want to change the DecalDefine entity height dynamically in script as at the moment all of the bullet holes are appearing at the same height and I want a random spread. How is this done? Or is this the wrong way to go about the problem?
many thanks
Posted: Sat Sep 23, 2006 2:11 pm
by Juutis
I don't think that can be done. I believe you can't modify those things once you've compiled the level.
But it would be possible to define more decals with different sizes and projectiles that use different decals. Then you could randomly pick the projectile that is shot. However, this includes scripting the player and weapons so I don't think it's worth it.
I seem to be clogging up this forum with my questions....sorry
I don't mind. And I'm sure the others don't mind either. Most of us are happy to help, you can ask anything here. And besides, the forums seem to be kinda quiet again. So it's good thing that at least someone is posting questions.

Posted: Sat Sep 23, 2006 5:26 pm
by Nout
Not possible today but is possible with additional coding.
Posted: Sat Sep 23, 2006 7:19 pm
by Larryboy
As I have lots of enemies firing at once so I'll make lots of DecalDefines and lots of weapons, and select them using a random. Its not a seroius game anyway but I think it would be a 'nice to have'.
Learning C++ after I've mastered scripting - wish me luck

Posted: Sat Sep 23, 2006 7:58 pm
by psYco
GooD! LUCK! I really should start learning coding...

I have avoided scripting entirely! I am absolutley terrified of scripting... yees I know that its really important and since I wanna wrk in the game dev industry one day I REALLY NEED to but I just dont know where to start

I look all over google and nothing... (i know I dont look around google I look around the web with google but it feels like your browsing google sumtimes

)
Oh and Ja I like having questions every now and then around here since whenever sum1 answers you I learn sumink!
(sorry to go off topic there)
Posted: Sat Sep 23, 2006 9:45 pm
by Larryboy
Well I'm learning scripting from the tutorials in Dan Valeo's fabulous e-book and it's not easy - but its pretty good
viewtopic.php?t=443
Posted: Sun Sep 24, 2006 8:53 am
by psYco
thanks ill look at that when I get a chance! What kinda scripting does that teach you???
Posted: Sun Sep 24, 2006 9:56 am
by Larryboy
After some experimenting I realise that I misunderstood the meaning of 'height' in DecalDefine. I thought it mean height on the wall, when infact it means how much the decal is stretched vertically. All becomes clear when you see the width property below it.
'we see what we want to see'
I was interested that the decal would also be displayed if they hit a play (or pawn) in mid air. In my game, where the decals are red dots it looks quite good... but is it the way its meant to be? (see image)

many thanks
Posted: Sun Sep 24, 2006 10:59 am
by psYco
WOW! your game looks cool! this what I love to see! Games taht are different! Well to be honest Im not too sure that the decalls are supposed to be created mid air... but hey it looks cool!
Posted: Sun Sep 24, 2006 2:49 pm
by Larryboy
Glad you like the look of the game. gonna call it 'Death by Statistics' or something. Its growing organicly which means that I haven't planned it and I don't know what I'm doing

Its nice to know that you can waste as much of your life playing your own game as you can playing someone elses..
Posted: Sun Sep 24, 2006 2:51 pm
by Juutis
gonna call it 'Death by Statistics' or something
Hehe, funny. I like that.

Posted: Sun Sep 24, 2006 8:24 pm
by MakerOfGames
Very nice screen! I am looking forward to seeing more of your game!
Posted: Mon Sep 25, 2006 1:44 am
by GD1
wow! that looks really cool. I'd definitely play it!

four stars
Posted: Tue Sep 26, 2006 9:15 am
by Larryboy
Glad people like the look of the level...
When its kind of finished (at the moment there is no end - or any point really), I'll make it available. Be nice to have some gameplay feedback
Gameplay is weird isn't it. You think your being clever by puting in more walls, obstacles etc. and it just makes the game more boring. Have one big room with a million enemies and its much more exciting.
onwards