Scripts / Text on top off a sprite?

Author
Message
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 24th Jul 2017 09:05 Edited at: 24th Jul 2017 12:30
how do you put text on top of a moving spritte, The sprite must move up and down.
Any one who can help with this Please?
Thanks .

Pcskiller
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 24th Jul 2017 19:11 Edited at: 24th Jul 2017 19:13
Take at look to "spritetest.lua" file in your scriptbank folder, or must better try it, so you can see the sprites moving around the screen.
Once done, backup the file in a different folder, then add this piece of code to the original one:

Original script:


it should look like this:



If you found there are a lot of imagen moving there and you want decrease quantity:

Where it say:


If you seen they are moving too fast and you want to decrease the speed:

Where it say:


And try again, tha't hep'u to understand how it work, so you can apply these knowledge for edit your script and get the same.

Notice Lee are working with array and declaring some params to work with later, something like x,y, than you'll need to achieve your needs.
Does you already have some script to move sprite up and down?

3com
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
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 25th Jul 2017 07:43
3com, thanks for the reply.
i wil give it a try and test it out.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 4GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 25th Jul 2017 12:33
PasteSprite I think will allow you to place text on top of sprites.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth.

Login to post a reply

Server time is: 2024-04-25 03:22:19
Your offset time is: 2024-04-25 03:22:19