Member
Last active 6 years ago
I found a temporary solution
1- Put the Javascript code bellow on top of the Script:
// define variables
var seguirFreq = 1000; // delay
var tipoMov = "swing"; // movement type ("linear"?)
2- And the code bellow into the "$(window).load(function(){" section:
setInterval(function(){
var c = $("#obj1178"); // Object to follow
$("#obj1198").animate({"left":c.css("left"), "top":c.css("top")}, seguirFreq, tipoMov); // Follower object
},seguirFreq);
I am a new user of Pubcoder, and love that program.
A question: Is there any way to make one object (image) follow another, with a little delay? (like a Mousetrail)
Thanks.