Forum

> > CS2D > Scripts > That 'timer'
Forums overviewCS2D overview Scripts overviewLog in to reply

English That 'timer'

2 replies
To the start Previous 1 Next To the start

old That 'timer'

Gaios
Reviewer Off Offline

Quote
1
2
3
4
5
6
7
8
9
fly_to = function(obj)
	imagepos(obj.imageid, obj.x, obj.y, 0)
	
	if obj.direction == 'left' then
		tween_move(obj.imageid, obj.flying_time * 1000, obj.x - (obj.distance * 32), obj.y)
	end
	
	timer(obj.flying_time * 1000, 'parse', 'lua fly_to(' .. obj .. ')')
end

I cannot send that table via timer, it's boring. Can you help me?

old Re: That 'timer'

Gaios
Reviewer Off Offline

Quote
I tried this:
1
timerEx(obj.flying_time, fly_to, 1, obj)
won't help. There become stack overflow. Please fix it.

EDIT:
lol, I just forgot about *1000. No comments. Thanks for your willingness.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview