Charas-Project

Off-Topic => Really Old Stuff => Archive => General programming => Topic started by: dart_ace2ace on October 10, 2007, 05:04:07 PM

Title: Sprite outside of a game
Post by: dart_ace2ace on October 10, 2007, 05:04:07 PM
 :yell:  why cant I do this. I can do most else,AND IT IS NOT LIKE I AM HAVE NEVER DONE ANYTHING LIKE THIS BEFORE.Ok, anyway I am trying to put a sprite I made on one of my profiles. it is like a myspace profile. uses bbcode. but I don't thing that matters does it? I mean it can still use html cant it?

OK, This is what I want:

1.) I want to put my sprite on the profile page.
2.) I want him to not move until the person viewing my profile scrolls down. When he/she scrolls down I want my sprite to look like he is walking that way. I don't want his placement on the page to actually move though. I want him to stay on the screen  when the person scrolls down or up or whatever. I f someone can tell me how to do this I would be vary thankful.
Title:
Post by: Osmose on October 10, 2007, 05:21:45 PM
Whether you can use HTML on a profile varies by site. I believe Charas filters out most HTML (And I know for a fact that it filters all of it on the new server). Either way, an IMG tag should work fine.

The second part is far more complicated, as Javascript only has the ability to detect the current position on the page a person has scrolled, meaning that you would have to have a loop go continuously and very fast to detect a change, and then change the image to the next frame each time it detects a change, but even then this would not look good with a scrollwheel as they jump down large amounts as opposed to scrolling smoothly.

Basically, the work required is far too much to make it worthwhile.