Scripts / Cutscene with Images

Author
Message
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 7th Sep 2019 20:41 Edited at: 7th Sep 2019 20:47
Hi guys,

I'm wondering if anyone might be kind enough to help me out. I have been working on this for a few days and not getting very far. I am sure it should be simple for a proper scripter.

So, the effect I am trying to create is the kind of thing you might see in an interactive graphic novel. It's kind of like a cutscene but without the video media. I have three images (background, wife and murderer). I am trying to create some parallax scrolling type effect.

I kind of got it to work but it's very messy and I've got it broken into three scripts. I would prefer just one. Anyway here are my bad and messy scripts:

Background:



Wife:



Murderer:



Also, it's hard to get the images layered in the right order.

I would really appreciate some help.
Julian - increasingly disillusioned and jaded
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Sep 2019 20:59
SetSpriteDepth is used to layer sprites, as it says in global.lua:
"SetSpriteDepth: SetSpriteDepth ( mySprite , 10 ) (0 is front, 100 is back)"

Been there, done that, got all the T-Shirts!
PM
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 7th Sep 2019 21:28
OK. Thanks for the tip.
Julian - increasingly disillusioned and jaded
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 7th Sep 2019 21:48
If I remember right set sprite depth only works with pastesprite

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 7th Sep 2019 21:53
No, it works fine, PasteSprite is for when you want text as well.
Been there, done that, got all the T-Shirts!
PM
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 8th Sep 2019 09:51
Is there a better way to execute this?
Julian - increasingly disillusioned and jaded
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 8th Sep 2019 11:05
Bit confused by this : LoadImage(GetEntityString(e,0))

Why are you putting the image file in the sound slot?

If you just put the image file directly in the script then you can combine the scripts into one.

i.e.
Been there, done that, got all the T-Shirts!
PM
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 8th Sep 2019 11:42 Edited at: 8th Sep 2019 11:46
I am using the Image Zone marker and I modified its script so maybe that's why it's in that slot.

Anyway, thanks very much. I'll try loading the three images to get everything into one script.
Julian - increasingly disillusioned and jaded
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 8th Sep 2019 12:26 Edited at: 8th Sep 2019 12:28
Quote: "I have three images (background, wife and murderer). I am trying to create some parallax scrolling type effect."


This is a prototype of code, but you has to match with your, to fit yours needs.



Or I'm getting your point bad?
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
lordjulian
10
Years of Service
User Offline
Joined: 10th Jan 2014
Location:
Posted: 8th Sep 2019 13:18
Thank you very much, 3com. That's a big help!
Julian - increasingly disillusioned and jaded
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 8th Sep 2019 14:54
Glad to help'u mate.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-12-22 09:29:51
Your offset time is: 2024-12-22 09:29:51