Animation problems

Non-platform specific questions.

Re: Animation problems

Postby BlarghNRawr » Sat Nov 22, 2008 10:31 pm

Code: Select all
if (hp>50) hp=50;
//replace hp with the name of the variable

if u used a variable thats the code , or for textnumber:
Code: Select all
if(hp.textNumber>50)hp.textnumber=50;
//replace hp with the actor name
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: Animation problems

Postby Kurtz1515 » Sat Nov 22, 2008 10:37 pm

Oh Cool! Thank you! :mrgreen:

one problem down and 3 to go... :(
Kurtz1515
 
Posts: 13
Joined: Sat Oct 11, 2008 5:54 pm
Score: 0 Give a positive score

Re: Animation problems

Postby Kurtz1515 » Sun Nov 23, 2008 2:43 pm

sadly i have another problem... attacking, i feel like i don't have enough animations for naruto, i also don't understand how to make him attack. can any one look over the new naruto adventure file and my pics for naruto? i just need some example codes so i could look of and study.
Attachments
Naruto.zip
the game
(247.63 KiB) Downloaded 90 times
naruto sprites.zip
My naruto animations
(660.69 KiB) Downloaded 166 times
Kurtz1515
 
Posts: 13
Joined: Sat Oct 11, 2008 5:54 pm
Score: 0 Give a positive score

Re: Animation problems

Postby jimmynewguy » Sun Nov 23, 2008 7:37 pm

1.lets say i have 40hp,(my max is 50) then i get a health item that heals hp by 20, my end results is have 60/50 hp, how can i fixe that?


draw actor-
Code: Select all
if(hp >= max hp)
hp = max hp;

then replace the variables
4.I tried a jumping thing that i found on these forums,where it reduces how much you can jump, but as long as i touch the floor once then i can just jump one more time even if im falling. Any idea?

collision finish-
Code: Select all
jump = 0;

edit- ditch the code ill do it myself
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Animation problems

Postby jimmynewguy » Sun Nov 23, 2008 8:00 pm

Here edited- :D

Few Changes = big difference
Attachments
Naruto-edit.zip
Few Changes-big difference
(230.69 KiB) Downloaded 97 times
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Animation problems

Postby Kurtz1515 » Sun Nov 23, 2008 9:31 pm

WOOOTT!! thanks, solves that problem,
i didn't like the music, well it was ok its just not really epic or adventurous, but it could be used if i was in a city or something :mrgreen:

Now if only i can get my fighting animation to work and hit only with his fist, for when he is facing left or right.
Kurtz1515
 
Posts: 13
Joined: Sat Oct 11, 2008 5:54 pm
Score: 0 Give a positive score

Re: Animation problems

Postby skydereign » Mon Nov 24, 2008 4:22 am

Are you talking about the actual animation direction, or the hitting of another character? I would use another actor for Naruto's attacks. And make the new actor's sprites, Naruto's fist, and during the keydown for an attack, it changes animation to the attack and an attack variable signifies dealing damage.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Animation problems

Postby DilloDude » Mon Nov 24, 2008 11:22 am

You could look at my Samureye demo.
That includes basic platformer manoevering and attacking.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron