Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I have used cutscene dialogue position. I am using the GUI layer to display the dialogue and so I wanted to refer to the viewport and or/camera to establish the size and positioning of the text box.
My viewport (as well as the camera) is 480x270 and so i wanted the textbox to be placed centrally with 20px of space from the edges of the screen (vertically) and be of a certain height.

what i am using right now is:

[cutscene_dialogue_position, 20, camera_get_view_height(view_camera[0])-20, camera_get_view_width(view_camera[0])-100, camera_get_view_height(view_camera[0])-10],
[cutscene_dialogue_style, noone, noone, c_black, noone, 0, fnt_text, spr_textbox_wide, true, example_continue1, 30, true],


It does position it weirdley however and when i tweak the values sometimes the text displays in a very weird fashion.
What would your recommended code be?