Forum

> > CS2D > Scripts > walker images
Forums overviewCS2D overview Scripts overviewLog in to reply

English walker images

3 replies
To the start Previous 1 Next To the start

old walker images

princeofpersia
User Off Offline

Quote
hi all

i want to know how can i make a png(image) movable same as he walk with lua?

an image move's from possition A to B and his movement take 10 second's same as he walked .

example : a boat move's on water from this side to other side .

old Re: walker images

KingShadow
User Off Offline

Quote
you want hud image that move when player move?
thats it

1
image('path',x,y,2)

if you want another modes thats it (copied from cs2d faq )
Mode 0: floor image (covered by players etc)
Mode 1: top image (covering players)
Mode 2: HUD image (covering everything, part of the interface,
affected by mp_hudscale)
Mode 3: super top image (covering everything on the map)
Mode 4: background image (covering only the background)
Mode 101-132: draw under this player (id+100)
Mode 201-232: draw over this player (id+200)
Mode 133-164: draw over this player and over entities (id+132)

old Re: walker images

DC
Admin Off Offline

Quote
@user KingShadow:
I think he is talking about moving a separate image, not about attaching an image to the player.

Also if you refer to the command reference please just type
cs2dlua:
and then select the command. Same for hooks with
cs2dhook:
or regular commands with
cs2d:
. This way a link will be added and you don't need to copy&paste reference content.

@user princeofpersia:
For moving an image smoothly from one position to another use cs2d lua cmd tween_move. This will move the image from its current position to a new position in the specified time.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview