Sprite Questions! Help a Raving Newbie in Need! Karma will repay you!
Displaying 1-20 of 22 total.
12 next
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
lord_kaiyn

I have a few questions regarding sprites in Verge 3.

For sprites that are larger then 32x16 (what i assume the pack-in demo contains) how is collision detection handled for that? I want sprites that are 64x64 in my game.

Is there a limit to the amount of animation arrays I can add to a single sprite set? For instance I want my game to have sprites that have many different attacking animations from all directions, these would obviously have to be assigned to a certain key, or an in-game set option. Is this possible to do?

/set GuiltTrip( Zeromus );
I want those documentation files :)

Thanks for all your help




Posted on 2004-05-08 23:10:39 (last edited on 2004-05-08 23:46:15)

mcgrue

It was possible even in v2 to have sprites of any size. However, thanks to a great deal of whining on my part and the grace of vecna, sprites now can have any size of obstruction core (whereas before they had to be 16x16).

To change these is... actually not known to me off the top of my head (I've been busy with menu code for Sully, and website code for here... and since, of the official demos, only Sully 3 will have oversized characters... it hasn't been a personal priority). They're definitly makefile parameters.

As for the animation limit: probably, but hopefully the limit is, at the least, 65335. If it's anything lower (ie 256), I'll have angry words with aen or zeromus or vecna or whomever made the last format. 256+ is feasable in a complex chr... 65k frames is a bit excessive.

Can you even add predefined animations into the chr format? I've wanted this for years, but AFAIK it's not in. My knowledge in such affairs are woefully inadequate.

The documentation is my and thinice's court right now. Guilt-tripping Zero will only get you vsp management features in maped 3... and not very effectively at that! ;D

Posted on 2004-05-08 23:27:11

RageCage

in the .mak file you set:
hotspot_x
hotspot_y
hotspot_w
hotspot_h

Posted on 2004-05-08 23:46:46

lord_kaiyn

" Can you even add predefined animations into the chr format? I've wanted this for years, but AFAIK it's not in. My knowledge in such affairs are woefully inadequate. "

When you say pre-defined animations, do you mean additional animations for attacking or whatever? Or animations assigned to a specific key? Or how many frames you can have in a particular animation?

If you do mean additional animation arrays, i noticed sully has several extras for emotes and whatnot, so it looks like you can have several more at least, is it limited to that?

Am I even making any sense? :)

Thanks for your quick reply :)

Posted on 2004-05-08 23:50:05

lord_kaiyn

I noticed this in the .mak file associated with an entity.

chr_version 5
in darin.pcx
out darin.chr
frame_w 16
frame_h 32
frames_per_row 5
frame_rows 6
d_idle 0
u_idle 5
l_idle 10
r_idle 15
d_walk F0W10F1W10F2W10F1W10F0W10F3W10F4W10F3W10
u_walk F5W10F6W10F7W10F6W10F5W10F8W10F9W10F8W10
l_walk F10W10F11W10F12W10F11W10F10W10F13W10F14W10F13W10
r_walk F15W10F16W10F17W10F16W10F15W10F18W10F19W10F18W10

The d_walk, l_walk, u_walk, and r_walk are obviously links to animation frames... but can you add more of these for attacking animations? Thats the major question I'm getting at. What about single frames too like surprised and shocked.. etc. Emotes essentially. How are those implimented? Sorry to be such a pain in the ass, I just need to know where my limitations are on sprite creation. Thanks again!

Posted on 2004-05-08 23:56:32

Overkill

Quote:Originally posted by Lord Kaiyn


The d_walk, l_walk, u_walk, and r_walk are obviously links to animation frames... but can you add more of these for attacking animations? Thats the major question I'm getting at. What about single frames too like surprised and shocked.. etc. Emotes essentially. How are those implimented? Sorry to be such a pain in the ass, I just need to know where my limitations are on sprite creation. Thanks again!


There are no other predefined frame routines, which is what mcgrue meant. So if you want any other frames from your sprite, do:

EntityMove("Z#");

where # is the frame number and repeat that with wait commands in the string as many times needed.

Posted on 2004-05-09 00:02:03

RageCage

another more 1337 way also would be
entity.specframe[ent]=frameNumber;
and that'll set the entity frame to what ever you want, but its for the more advanced situations.

Posted on 2004-05-09 01:12:44

blues_zodiakos

I don't know if you know this, also, but make sure that you realize that sprites and entities in V3 are two different things. Entities are the little people you see moving around on the map. Sprites (the new system actually handled by the V3 exe)are a new. You could always do them before, as long as you coded them yourself, but V3 has a system to handle them now.

Posted on 2004-05-09 01:59:25

mcgrue

So anyways, how much Karma are we talking here? ;)

Posted on 2004-05-09 06:08:13

el_desconocido

In regards to non standard animation sequences like attacks, dancing, whatever, if my assumptions about callbacks are true, it should prove fairly simple to feed an entity a move script, and set a callback to "think" again when the move script will have been completed and pass a new move script or return control the the entities default Movement Type, or in the case of the player entity, to the (human) player.

El Hablador de las Oraciones Largas.

Posted on 2004-05-09 06:56:30

lord_kaiyn

So much Karma, that in fact you can play video games all day without your girlfriend nagging you about not spending enough time with her constantly :)

Thats alot of Karma.

Posted on 2004-05-09 18:42:13

mcgrue

Quote:Originally posted by Lord Kaiyn

So much Karma, that in fact you can play video games all day without your girlfriend nagging you about not spending enough time with her constantly :)

Thats alot of Karma.


Fool! That's a myth like the Ark of the Covenant and the Holy Grail!

...the Nazis were looking for this Karma, you know. Hitler thought it was the key to winning the war.

Posted on 2004-05-09 23:12:23

el_desconocido

Quote:Originally posted by Lord Kaiyn

So much Karma, that in fact you can play video games all day without your girlfriend nagging you about not spending enough time with her constantly :)

Thats alot of Karma.


Any Karma allotted to me I shall use to spend all day with my girlfriend. She is 100% compatible with all my hardware and software, never says "game over", is niether too hard nor too easy, doesn't nag me to register, requires no updates, and talk about replay value...

El Enamorado

Posted on 2004-05-10 00:55:04

resident

I'm pretty sure that's not a female. If you're absolutely sure it is, you might want to check her for a pulse.

Posted on 2004-05-10 09:45:22

Interference22

Look carefully. Are you sure your girlfriend is not, in fact, a copy of Kirby Air Ride?

Posted on 2004-05-10 10:07:10

Alex

Off topic, but has to be said: Kirby Air Ride is quite possibly the worst thing ever. And I include the Third Reich in that.

Posted on 2004-05-11 20:05:29

mcgrue

Is this including alternate universes, like the one where Richard Nixon is the head of the Third Reich, and the one where Friends was on the air for a decade while Farscape doesn't even make half that?

...

Posted on 2004-05-12 22:20:42

Interference22

Quote:Originally posted by Alex

Off topic, but has to be said: Kirby Air Ride is quite possibly the worst thing ever. And I include the Third Reich in that.


That's IT. You're not getting away with insulting Kirby Air Ride and getting away with it! That game is a more than acceptable entertaining diversion for an hour or two. Plus, riding around on someone's luggage is surreal yet satisfying. You're just objecting to a series of games where the main character is pink. The unlockeables keep it nicely paced, too.

And the Third Reich were quite good. Without them, we wouldn't have Medal of Honour, BF:1942 or Call of Duty. Obvoiusly, the persecution of the Jews causes them to lose a few points there..

Posted on 2004-05-13 10:09:07

Alex

Quote:Originally posted by Interference22

And the Third Reich were quite good. Without them, we wouldn't have Medal of Honour

Yes, we would have had to make do with Medal of Honor: Rising Sun... Hurrah for Hitler!

Posted on 2004-05-13 13:03:24

mcgrue

Without the nazis, who would Indiana Jones fight? Monopolies?

Indiana Jones and the Trustbuter of Doom just doesn't have the same ring.

Posted on 2004-05-13 16:46:03


Displaying 1-20 of 22 total.
12 next
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.