Okay, I have a decent world set up right now for a game I'm making, but I've run into a few issues.
My first issue, is that I've tried a few different ways to get a scrolling sky effect and nothing seems to be working. The setup I have is that the matrix and all my objects are within a large inverted sphere, with a cloud texture stuck on it (The texture appears on the inside, which is why I inverted it). Now, all this is fine and dandy, but it just doesn't satisfy me. So I decided I'd try to make an x axis scrolling effect on the texture, so I put
Scroll object texture 999,2.5,0
Within the main loop. Now, this scrolled it, but it wasn't a continual scrolling effect. It just knocked it over 2.5 pixels. So then I thought about it for a little while, and got another idea. Rotate the sphere. So I put this within the main loop.
Once again, the image moved, but not continually. So now, I'm stumped, and I would prefer a quick easy solution.
My second issue is to do with physics/gravity (I think). I'm not even sure where to start with this one. I have a simple box as my character, and I was wondering if there was a way to lock my character to the matrix/landscape object, so that when I move up and down hills my character will move with the landscape. Here's the code I use for movement (From Xenoscythe's RPG tutprial), if that helps.
gameTime=timer()-time
MSframe#=gameTime*(movespeed/1000.0)
TSframe#=gameTime*(turnspeed/1000.0)
If Upkey()=1
Move Object 1,MSframe#
endif
If Downkey()=1
Move Object 1,-MSframe#
endif
If Leftkey()=1
Dec a#,TSframe#
endif
If Rightkey()=1
Inc a#,TSframe#
endif
yrotate object 1,a#
posx#=cos(270-a#) * 30 + object position x(1)
posz#=sin(270-a#) * 30 + object position z(1)
Position Camera posx#,object position y(1)+6,posz#
Point Camera object position x(1),object position y(1)+6,object position z(1)
Any help is appreciated, thank you.
Making my way through life one line of code at a time...