Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Other stuff here

A topic by Max Oakland created Jun 01, 2021 Views: 174 Replies: 3
Viewing posts 1 to 2
Developer

randomness and miscellaneous

(+1)

how did you make a fast transition?

Developer (1 edit)

I edited the engine. You have to eject the engine and then open the file called ScriptRunning_b.c

Then find this text: 

UBYTE ScriptUpdate_MoveCamera() 

In that code you will see 
  if ((game_time & camera_speed) == 0) {
     if (camera_pos.x > camera_dest.x) {
     camera_pos.x--;
    } else if (camera_pos.x < camera_dest.x) {
      camera_pos.x++;
    }
    if (camera_pos.y > camera_dest.y) {
      camera_pos.y--;
    } else if (camera_pos.y < camera_dest.y) {
      camera_pos.y++;
    }

I changed it to:

 if ((game_time & camera_speed) == 0) {
     if (camera_pos.x > camera_dest.x) {
     camera_pos.x-=4;
    } else if (camera_pos.x < camera_dest.x) {
      camera_pos.x+=4;
    }
    if (camera_pos.y > camera_dest.y) {
      camera_pos.y-=4;
    } else if (camera_pos.y < camera_dest.y) {
      camera_pos.y+=4;
    }

You can change the number 4 to something else, but I didn't try any other number. A smaller number will move it more slowly. The default is the same as moving it 1. Bigger numbers should work but if you make the number too big you will notice some visual glitches. If you don't like them you can make it smaller til you find what works best

(+1)

Thanks!