Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Need help with sprites

Author
Message
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 22nd Feb 2008 04:08
I posted this before but i've been waiting about an hour and the help on being a noob says it wont take more than an hour so here it is again. Basically im making a zelda game for practice. and moving up/down does not work. Also when i move left or right a constant image of link facing down remains. whats going on!?



[img="http://lovelyd.shukuya.com/enters/e3.gif"]
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 22nd Feb 2008 10:35 Edited at: 22nd Feb 2008 11:16
Quote: "and the help on being a noob says it wont take more than an hour"


Where does it say that?

It takes as long as it takes because there's no guarantee that a mod is on-line when you post due to time zones.

Once you have posted, please be patient and wait for it to be approved.

If you think about it, posting again and again doesn't have the slightest effect whatsoever - because each one will still have to wait for a mod to approve it...

TDK_Man

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 22nd Feb 2008 14:39 Edited at: 22nd Feb 2008 14:43
Oh Lord, the mods are so bad for having to approve a post within an hour. Patience. BTW, I've had the same problem before. This is in my old 2d Breeder's Life game. It is complicated, and isn't indented and there is no logic behind it, and it is not not remarked correctly but it works.




Formerely Cool Guy Jordan
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 22nd Feb 2008 18:39
Hint - Seriously - If you make a bunch of posts that are intelligent - doesn't mean you need to know coding well - just intelligent and you try to search online first - you show things you are trying and ask questions that people can readily see whats wrong and answer...

Basically act mature and interested in the forum topics etc - You won't be a forum noob long.

Mod's just don't want jerks posting "Viagra Here Click Here" and users that are not going to learn or contribute - ... actually you dont HAVE to LEARN or Contribute - Just Act Mature and Responsible with your posts.

ALL the mods here are decent. I've NEVER seen a MOD take action without valid reasons against users - I've even asked at times - like today about a zelda thread - (though I think I know why) - Every time there is a valid Reason -

So Be patient - Post Often - ask questions - and WAIT... You WILL be approved!

Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 23rd Feb 2008 01:05
i can see the reasons behind approval time, its rather good actually i haven't yet seen one spammy thread or anything, but still frustrating to a new user as they (we) are probably the ones that are using the forum the most until we find out feet.

i would also say it does encourage the user to search the codebase, the rest of the forum etc and actually try things out before posting (as its easier to search etc than to ask a question)

Paul
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 23rd Feb 2008 14:56
Quote: "i can see the reasons behind approval time, its rather good actually i haven't yet seen one spammy thread or anything, but still frustrating to a new user as they (we) are probably the ones that are using the forum the most until we find out feet.

i would also say it does encourage the user to search the codebase, the rest of the forum etc and actually try things out before posting (as its easier to search etc than to ask a question)

Paul "


This user is a God send.


Formerely Cool Guy Jordan
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 24th Feb 2008 03:17
my apologies for the double post. its not that i thought that the mods were being lazy more that i assumed it didn't get sent for some reason. but allow me to explain my problem. I started over since it was not alot of code.

heres the code i used for moving:



basically it checks to make sure only one key is held then it checks a variable (v_link_facing) to see if link is already facing that direction *I'll tell you why this is in there later* if it is not, the it instantly set the sprites frame to the first frame in the animation. Then it sets the min and max frame to the values used in the animation and sets the facing.

Now the problem with this (and the reason i need the facing check) is when i set the 2 frame variables, the first time the sprite animation is played the sprite plays the frame before it. then plays those 2 on a loop. every time. Now my issue with this method is when the sprite is changed. the sprite hangs for a second because the same frame is played twice, causing an extended first frame.

Is there a more efficient way to go about this? I don't understand why its displaying 3 frames when i implicitly specify 2. whats going on here.

heres my full source code:




and i'll attach the image spriteset im using for link

thanks in advance for any help

[img="http://lovelyd.shukuya.com/enters/e3.gif"]

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-27 10:35:59
Your offset time is: 2024-09-27 10:35:59