What is instant movecamera?
This type of script serves for make a movecamera instantly.
It is very useful for to make good scripts. And don't need know how make a simple movecamera with applymovement comand. I explain all you need know for make a instant movecamera script in this tutorial.
Before continue, I want give special thanks to R!cci.
And excuse me for my english
Could you put an example?
Sure. Here I put an example. Is a youtube video uploaded by me:
How I make a instant movecamera script?
This is the interesting part. First, you must know the commands that we will utilize. These are the next:
Why the colours? Because so you will understand better. I will put my script for you see how make a instant movecamera script:
If you don't know how to use movesprite comand, you should revise this spoiler:
How I use a writebytetooffset comand?
writebytetooffset 0xA 0x2025734 / 2025736
Position coordinate
Simbolize the x-axis
Simbolize the y-axis
For example, if you want to move the camera to 0017 (x-axis) and 000C (y-axis) You must put:
writebytetooffset 0x17 0x2025734 (this is the x-axis)
writebytetooffset 0xC 0x2025736 (this is the y-axis)
(you don't forget of special 0x8E comand)
Tutorial by javi4315 (jota_rdk here xD)
Special thanks for R!cci
if you have any doubt tell me.
I hope you enjoy this tutorial
Greetings!
This type of script serves for make a movecamera instantly.
It is very useful for to make good scripts. And don't need know how make a simple movecamera with applymovement comand. I explain all you need know for make a instant movecamera script in this tutorial.
Before continue, I want give special thanks to R!cci.
And excuse me for my english
Could you put an example?
Sure. Here I put an example. Is a youtube video uploaded by me:
Code:
[URL="http://www.youtube.com/watch?v=P9aHiNDSdX0 [/CODE"][COLOR=#0066cc]http://www.youtube.com/watch?v=P9aHiNDSdX0 [/COLOR][/URL]
How I make a instant movecamera script?
This is the interesting part. First, you must know the commands that we will utilize. These are the next:
- fadescreen 0xA
- movesprite 0xA 0xB 0xC
- Special 0xA
- writebytetooffset 0xA 0x2025734/2025736
Code:
org @start
[COLOR=darkgreen][script before instant movecamera][/COLOR]
[COLOR=darkred][instant movecamera 1][/COLOR]
[COLOR=darkorange][script into instant movecamera][/COLOR]
[COLOR=indigo][instant movecamera 2][/COLOR]
[COLOR=blue][script after instant movecamera][/COLOR]
release
end
Why the colours? Because so you will understand better. I will put my script for you see how make a instant movecamera script:
If you don't know how to use movesprite comand, you should revise this spoiler:
Spoiler:
movesprite 0xA 0xB 0xC
Here, you must put the minisprite number in advance map. If you want that dissapear hero, you must put FF
Simbolize the x-axis
Simbolize the y.axis
Here, you must put the minisprite number in advance map. If you want that dissapear hero, you must put FF
Simbolize the x-axis
Simbolize the y.axis
Code:
org @start
[COLOR=darkgreen]lock[/COLOR]
[COLOR=darkgreen]faceplayer[/COLOR]
[COLOR=darkgreen]msgbox @text1[/COLOR]
[COLOR=darkgreen]callstd 0x6[/COLOR]
[COLOR=darkred]fadescreen 0x1 [/COLOR]
[COLOR=darkred]special 0x113 [COLOR=black](serves to separate the camera of the hero)[/COLOR]
writebytetooffset 0x12 0x2025734 [COLOR=black](will move camera instantly in the x-axis to her new position)[/COLOR]
writebytetooffset 0xC 0x2025736 [COLOR=black](will move camera instantly in the y-axis to her new position)[/COLOR]
special 0x8E [COLOR=black](will update the screen)[/COLOR]
movesprite 0xFF 0x9 0x4 [COLOR=black](You must move hero to his original position)[/COLOR]
movesprite 0x1 0xA 0x4 [COLOR=black](You must move all minisprites that appear in the screen to his originals positions)[/COLOR]
fadescreen 0x0 [/COLOR]
[COLOR=darkorange]pause 0x40 [COLOR=black](will stop the game during the time that you want)[/COLOR]
msgbox @text2 [COLOR=black](simple message)[/COLOR]
callstd 0x6[/COLOR]
[COLOR=indigo]fadescreen 0x1 [/COLOR]
[COLOR=indigo]special 0x113 [COLOR=black](You must write this command again)[/COLOR]
writebytetooffset 0x9 0x2025734 [COLOR=#000000](will move camera instantly in the x-axis to original position)[/COLOR]
writebytetooffset 0x4 0x2025736 [COLOR=#000000](will move camera instantly in the y-axis to original position)[/COLOR]
special 0x8E [COLOR=black](will update the screen)[/COLOR]
movesprite 0xFF 0x9 0x4 [COLOR=black](You must move hero to his original position again)[/COLOR][/COLOR]
[COLOR=indigo]movesprite 0x1 0xA 0x4 [COLOR=#000000](You must move all minisprites that appear in the screen to his originals positions again)[/COLOR]
special 0x114 [COLOR=black](Camera will join to hero movement)[/COLOR]
fadescreen 0x0[/COLOR]
[COLOR=blue]msgbox @text3[/COLOR]
[COLOR=blue]callstd 0x6[/COLOR]
release
end
[COLOR=#006400]#org @text1[/COLOR]
[COLOR=#006400]= Excuse me.\nWhere is alex's house?[/COLOR]
[COLOR=#ff8c00]#org @text2[/COLOR]
[COLOR=#ff8c00]= This is alex's house.[/COLOR]
[COLOR=#0000ff]#org @text3[/COLOR]
[COLOR=#0000ff]= Ok. Thanks![/COLOR]
How I use a writebytetooffset comand?
writebytetooffset 0xA 0x2025734 / 2025736
Position coordinate
Simbolize the x-axis
Simbolize the y-axis
For example, if you want to move the camera to 0017 (x-axis) and 000C (y-axis) You must put:
writebytetooffset 0x17 0x2025734 (this is the x-axis)
writebytetooffset 0xC 0x2025736 (this is the y-axis)
(you don't forget of special 0x8E comand)
Tutorial by javi4315 (jota_rdk here xD)
Special thanks for R!cci
if you have any doubt tell me.
I hope you enjoy this tutorial
Greetings!
Last edited: