Page 1 of 1

More infon on 3D Development (with video)

PostPosted: Tue Jun 01, 2010 12:38 pm
by Hblade
Yet again, only using 2 lines of code this time, not including the if statement, I was able to create another 3D example :D


I'm going to try and make 3D water now :3

Re: More infon on 3D Development (with video)

PostPosted: Tue Jun 01, 2010 5:45 pm
by Bee-Ant
Hmmm...but you can actually make it without IF statement with only 1 line of code... something like this...

Background -> Keydown -> Left
Code: Select all
x-=cloneindex*0.5;
//I use cloneindex*0.5 instead of cloneindex/2 because division is slower

Background -> Keydown -> Right
Code: Select all
x+=cloneindex*0.5;

In this case, you have to clone the background with vertical array cloning :D

To make sure each clone's zdepth won't override each other :
Background -> CreateActor
Code: Select all
ChangeZDepth("Event Actor", 0.001*cloneindex);


Right? :D

Re: More infon on 3D Development (with video)

PostPosted: Tue Jun 01, 2010 5:58 pm
by Hblade
The if statement was only to handle a lock on how long you can travel xD

The 1 line of code used was - keydown
Code: Select all
x+=(yscreen/30);

Re: More infon on 3D Development (with video)

PostPosted: Wed Jun 02, 2010 7:08 am
by Bee-Ant
Hblade wrote:The if statement was only to handle a lock on how long you can travel xD

Draw Actor :
Code: Select all
limit=max(-640,min(limit,640));


Then add limit adjusting on the Keydown :
Left
Code: Select all
limit--;

Right
Code: Select all
limit++;

:D

Re: More infon on 3D Development (with video)

PostPosted: Wed Jun 02, 2010 10:04 am
by Hblade
omg thanks :D