This content has been marked as final. Show 14 replies
I'm 11 years old and I had a 3D envirerment and I made the guy able to move around it. I know how to add a gun and enimies but am having trouble with bounderies! I'll figure it out though a engine with Director is not to hard. In fact, the programming of a 3D game is a little easy with Director! Just modeling is hard. For me it is like that because I took lots of tutorials for beginners!
So could you share the script you used to navigate through your scene?
I think the ChromeLib has behaviours that can acheive this, but not sure if you need the free or full version
Its me to the rescue again. I am 11 years old and I know the script and how to add a gun and enemies but not one thing thats hard for me.... BOUNDARIES. Add the email firstname.lastname@example.org if you wanna know how to navigate but plz.. How you make bounderies. I'll give you all the script and a tutorial if you add me but I really need help in thius case. I can add enemies and guns but no boundaries. How silly. In flash this function is called hitest when something hits another a certin action happens like someone hitting vertine ground a enemie would decect you act and it would bring a action or gun pickups and boundaries! How is this function done in Director mx 2004? I'm trying to make a 3D game by myself but I know the programming how to add a good cursor too but I need to know this. My father is doing the 3D modeling so I'm not modeling, only porgramming. I'm even expirenced in flash but I really don't want to let my Studio down so I have to make a game no matter what! I can make sound effects or get them but with grapics I'm a little bad. PLEASE HELP NE WITH BOUNDARIES IN DIRECTOR!
here is a script that detects a collision between 2 objects and triggers a handler named doosomthing . (just add it to a blank shockwave 3d):
global s1,s2 -- sphere1 and sphere2
on beginsprite me
obj = sprite(me.spritenum).member
sphere_r = obj.newmodelresource("sr",#sphere)
sphere_r.radius = 10
s1 = obj.newmodel("sphere1",sphere_r)
s2 = obj.newmodel("sphere2",sphere_r)
s1.collision.resolve = 1
s1.collision.resolve = 1
on dosomething me, collisiondata
go the frame
I hope it is what you have been searching for.
for more info, search for "collision" in director's documentation.
Thanks for the leads everyone. JohnAQ: I tried the ChromeLIb and that looks close, but the rotation all seems to be rotating around the wrong axis. Do you have any words of wisdom on the First Person behavior?
DanielOzio: I've seen those tutorials, but they just seem to rotate around the character (and then swap cameras). Am I misreading that camera tutorial?
the collision modifier is a little bit tricky and i would not use it for a egoshooter like navigation. I would suggest using modelsunderray or havok to do the collision detection (havok can be confusing for people who just got into lingo...)
By the way, collision detection something very often discussed in this forum:
http://www.adobe.com/cfusion/webforums/forum/searchresults.cfm?FTVAR_TABLECHOICEFRM=archiv e&FTVAR_STARTDATEFRM=&FTVAR_SEARCHWHATFRM=c&FTVAR_KEYWORD1FRM=collision&FTVAR_ENDDATEFRM=& FTVAR_DATESELFRM=Select&FTVAR_CATEGORYIDFRM=268&FTVAR_AUTHORFRM=&FTVAR_RESULTTYPE=topics&S TARTPAGE=1&FTVAR_FORUMVIEWTMP=Linear
The link didn't work, would you mind reposting? I'd really like to see it.
Essenatilly, yeah, I want to walk through the world like in a FPS, but I'd also like the ability to fly straight up (like with the SHIFT) and straight down (like with the CNTRL) as you can do in something like UT2004.
OK....just for some interesting discoveries I've been making. My original attempts were using C4D, and apparently, the axis system is different. So all the outputs were really weird, and what should have been rotating one way was rotating the other. Very confusing.
Experiments with Maya have been more trustworthy (although Maya 8.5 doesn't have a Shockwave exporter for some reason). I still haven't gotten a truly interactive navigation down yet. So I'd still like any help I can get, but things are making a little bit more sense to me now.
Some friends of mine tried the link and it worked, i tried to and it works, please try again and if it still doesn't work on your PC I will post it on an other site.