Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How Make Text In Label Has Animation Move right and left

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
MateeJr Gaming
How do I cheat?
Reputation: 0

Joined: 24 Dec 2017
Posts: 6

PostPosted: Tue Jan 02, 2018 8:45 am    Post subject: How Make Text In Label Has Animation Move right and left Reply with quote

[HELP] How I Make That Text on Label Can Move in Her CEPanel ?
I Got New Trainer Has A Label Moving around CEPanel like Using timer or animations .idk pls help




Thanks If u Reply
Back to top
View user's profile Send private message
FreeER
Master Cheater
Reputation: 17

Joined: 09 Aug 2013
Posts: 452

PostPosted: Tue Jan 02, 2018 10:23 am    Post subject: Reply with quote

A label is just a subclass of Control which has these properties/methods (from celua.txt in the install directory)
Code:
Control Class: (Inheritance: Component->Object)
properties:
  Caption: string - The text of a control
  Top : integer - The x position
  Left : integer - The y position
  Width : integer - The width of the control
  Height : integer - The height of the control
  ClientWidth: integer - The usable width inside the control (minus the borders)
  ClientHeight: integer - The usable height the control (minus the borders)
  Align: AlignmentOption - Alignment of the control
...

methods:
  getLeft()
  setLeft(integer)
  getTop()
  setTop(integer)
  getWidth()
  setWidth(integer)
  getHeight()
  setHeight()
  setCaption(caption) : sets the text on a control. All the GUI objects fall in this category
  getCaption() : Returns the text of the control
  setPosition(x,y): sets the x and y position of the object base don the top left position (relative to the client array of the owner object)
  getPosition(): returns the x and y position of the object (relative to the client array of the owner object)
  setSize(width,height) : Sets the width and height of the control
  getSize() : Gets the size of the control
  setAlign(alignmentoption): sets the alignment of the control
  getAlign(alignmentoption): gets the alignment of the control
...
  screenToClient(): Converts screen x,y coordinates to x,y coordinates on the control
  clientToScreen(): Converts control x,y coordinates to screen coordinates


Most specifically the top and left properties (though I think it has the x, y parts mislabeled lol) and the setPosition method.

So, change the position to uh, change where it's at, aka make it move. Beyond that it's basic programming logic. You can learn the basics of that in JS here, they're both scripting languages with mostly C-like syntax so what you learn for JS will apply fairly well to Lua.
Back to top
View user's profile Send private message
MateeJr Gaming
How do I cheat?
Reputation: 0

Joined: 24 Dec 2017
Posts: 6

PostPosted: Tue Jan 02, 2018 7:43 pm    Post subject: Reply with quote

But i waannaq give you some trainer FreeER Itsw named MildzTopia See the up is have text move
and i will try ur script
Search in Youtube :Mildztopia 2.73
And download or see the video have trainer text move
if u wanna download them trainer download in descw Confused Very Happy
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 449

PostPosted: Tue Jan 02, 2018 9:56 pm    Post subject: Reply with quote

Test :

Code:
f = createForm()
f.height = 100
f.width = 200

l1 = createLabel(f)
l1.top = 10
l1.left = 25

function moving_Text()
l1.Visible = true
index1 = 0
spaces1 = 20
step1 = 1
values1 = {}
for i=0,spaces1 do
  local text1 = "Cheat Engine"
  for j=0,i do
    text1 = " " .. text1
  end
  values1[i] = text1
end
timer1=createTimer(nil, false)
timer1.Interval=100
timer1.OnTimer=function(timer1)
  if index1 >= spaces1 then
    step1 = -1
  elseif index1 <= 0 then
    step1 = 1
  end
  index1 = index1 + step1
  l1.Caption = (values1[index1])
  local color1 = 0
  for i=0,3 do
    color1 = color1 * 10 + math.random(255)
  end
  l1.Font.Color = color1
end
timer1.Enabled=true
end

function exit()
 timer1.Destroy()
 closeCE();
 return caFree
end

f.show()
moving_Text()
f.onClose = exit

_________________
Singapore Sling + Jhony Walker
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites