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.

Author
Message
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 3rd Feb 2005 08:49
ok i have a .x world becuase the conpilers wont conpile the lvl i made so i doing it in .x

i want to know how to sotp when hit wall and still beable to move away
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 3rd Feb 2005 08:52
its ganna be real simply in some way
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 3rd Feb 2005 08:54
i tryed auto camera collision and it didnt work neath did auto obejcty collision
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 3rd Feb 2005 09:09
Go to the code snippets forum and use the search at the bottom. Search the word collision. There are several good examples in there.

squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 4th Feb 2005 03:50
kk thax\
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 4th Feb 2005 08:37
cant find anyhting
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 4th Feb 2005 09:20
[/code]ok i made this map in Deled and when i load the export of a .x it wornt sotp when i hit a wall. i tryed if i collided wiht the .x map and it will move be backward.

ok when i ran the game it keep moving me back till i was a was away form the map....


help


[code]
load object "map\lvl 1\docking bay2.x",1

position object 1, 1,1,1



make object cube 2,10
Position object 2,1,100,100
position camera 1,-100,1
POINT CAMERA 1,1,1


do
if object collision (1,2)
move object 2,-.5
endif

gosub move
loop



move:
x# = object position x(2)
z# = object position z(2)
y# = object position y(2)

Position camera X#,Y#,Z#

SET OBJECT TO camera ORIENTATION 2

OldCamAngleX# = CameraAngleX#
OldCamAngleY# = CameraAngleY#
CameraAngleY# = WrapValue(CameraAngleY#+MousemoveX()*0.2)
CameraAngleX# = WrapValue(CameraAngleX#+MousemoveY()*0.2)



if keystate(17)=1
move object 2,.5
Endif

If keystate(31)=1
move object 2,-.4
Endif

If keystate(30)=1
move object left 2,.5
Endif

If keystate(32)=1
move object right 2,.5
Endif


Yrotate camera CurveAngle(CameraAngleY#,OldCamAngleY#,24)
Xrotate camera CurveAngle(CameraAngleX#,OldCamAngleX#,24)


return
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 5th Feb 2005 05:35 Edited at: 5th Feb 2005 05:37
There are plenty of codes that popup when I search for the word collision in the code snippets forum.

http://forum.thegamecreators.com/?m=forum_read&i=6

[edit] Under Thread Subject Search put "collision" in the box (no "") and hit search. There are 3 good ones that pop right up.

Login to post a reply

Server time is: 2024-11-27 21:44:30
Your offset time is: 2024-11-27 21:44:30