Hey, so I was just wondering how i would be able to use animated tiles (just like spells) and put them underneath a player so they are playing constantly even if a player is standing still. This would be used mainly for admins. I've looked at how spells work but I have no idea how i would be able to put this under a player.
Thanks,
-Sword
You put the call to blit that BEFORE you blit the player. Then it's under the player. Piece of cake.
The term "under" is ugly. In GameLoop just call your animation sub before bltplayer.
MS doesn't have spell animation by the way.
Just gut out Elysium's spell animation sub, change x and y to Code: X = GetPlayerX(Index) * PIC_X + Player(Index).XOffset
Y = GetPlayerY(Index) * PIC_Y + Player(Index).YOffset - 4
Ok so lets say i wanted to make an Animations.bmp file that had the animation i wanted "under" the player. How would i make it so it knew that the animation is coming from Animations.bmp?
Seriously?
Look at how it loads items.bmp, tiles.bmp or sprites.bmp..
this is the beginners forum.......
but thanks...
It's common sense. If you wanna know how to do something that's already done, just look at how the other stuff is done.
He didn't flame you, he just made an observation. What you are trying to do is already done similarly with tiles.bmp, sprites.bmp, etc. Look in modDirectX, copy all the TileSurf stuff, paste it, change it to AnimationSurf, and if you run into problems, let us know.
Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
What he wants to do hasn't already been done. It's fine loading the graphics files into the DirectX surface, but getting it to loops through the animations, and blitting it under the player so that everybody else can see it also?
There's also scrolling maps to consider.
Man... I wish I knew as much as you guys, I'd actually show people how it's done instead of being so lazy :roll:
It's not a matter of being lazy. We all had to learn how to do things, from start to finish one way or another. His start has been given to him. He needs to create a layer for it, so that the layer is different from the rest.
He wants to add a new surface for animations. Surfaces already exist, surfaces have already been done.
He wants to use his new surface for animations. Animations already exist, you can find examples of animation in sub bltPlayer, bltNpc, and bltMap.
What he wants is pretty much a dupe of the way a map animation works, but he didn't specify under what circumstances he wants this animation to play.
I wouldn't call us lazy. None of us have any obligation to write a tutorial every time someone asks a question. Personally I think people learn more if you coerce them into doing it themselves rather than handing it to them with a ribbon on it.
I agree. I'm down to help anyone that is actually looking for help and to learn.
That's how everyone here treated me when I first joined, and I learned, so that's how I'mma treat everyone else. That's why I despise the tutorial request section. People post there EXPECTING us to do the WORK for THEM. We get nothing out of it in return. I'd rather teach someone how to do something, so I at least get the satisfaction of knowing I truly helped.
What's that old saying? Give a man a fish and he’ll eat for a day, teach a man to fish and he will eat for the rest of his life.
Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
Right so "Just look at how that works" is helping somebody?
Wow, I'd love to see what kind of training they give people where you work.
I have no idea what version of mirage he's using, nor what modifications his source already has. With the information he's provided, all I have to go upon is the assumption that his source has the same default map animations that any mirage based game has. I'm telling him to copy and paste that code, and change it to add a new surface.
He hasn't said anything about what he's trying to do, or pasted any code for us to fix up for him. He simply asked a question, and implied that he was trying to mimick spells, which leads me to think he knows at least something about programming in the mirage environment. We explained to him that for the way he wants it, he'd do better to mimick tiles, and the tile animations.
I welcomed him to ask questions, and he hasn't returned.
GameBoy Wrote:Right so "Just look at how that works" is helping somebody? He hasn't mentioned running into any problems, so I guess it did.
GameBoy Wrote:Wow, I'd love to see what kind of training they give people where you work. I fail to see how work experience relates to this at all. I don't know anyone who gets paid to explain to people how to make new tile surfaces for mirage games.
GameBoy is just upset, cause back in the day when he knew things, he thought he was cool. Now he knows nothing and even noobs know more than him.
I don't see one thing in this forum, not in the rules, not in requirements to be allowed to post or anything, that states we have to do a damn thing. If you wanna help more than we did (Which, we did so based on information given..), then feel free to quit being a douche and fucking do it. Then again though, you can't even help yourself with simple things, so there goes that.
Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
As far as I can see Matt the only contributions you make to this forum are the idiotic ones.
As for the newbs, I did a lot for this community before they arrived. Forgetting that I was a global moderator on the original forums? Forget that I released the first open source modified mirage-based engine (Before Konfuze and all that crap)? I've been around Mirage Source a lot longer than most people here, while my skills at Visual Basic haven't improved much (Because I don't sit on the computer all day perfecting them), I still have contributed a lot.
GameBoy Wrote:As far as I can see Matt the only contributions you make to this forum are the idiotic ones.
As for the newbs, I did a lot for this community before they arrived. Forgetting that I was a global moderator on the original forums? Forget that I released the first open source modified mirage-based engine (Before Konfuze and all that crap)? I've been around Mirage Source a lot longer than most people here, while my skills at Visual Basic haven't improved much (Because I don't sit on the computer all day perfecting them), I still have contributed a lot.
I just helped someone.. Quit posting, damn.
Posts: 345
Threads: 48
Joined: Nov 2021
Reputation:
0
|