Animating Sprites In VB?
Feb 8, 2010With battleaxe knight loaded and moving, I'd like to add animationI already have the frames for him to be animated, I just don't know how to animate him. (I have no experaince in game animation)
View 5 RepliesWith battleaxe knight loaded and moving, I'd like to add animationI already have the frames for him to be animated, I just don't know how to animate him. (I have no experaince in game animation)
View 5 RepliesI'm having problems getting random rooms generated without having them over lap one another. I've tried everything that I can think of and none of them work right when there is more than three room being generated, but even then two of the three rooms over lap. Is there any other way to check to see if the rooms are over laping or not. Here is the code I'm using.
[Code]...
I'm trying to make a trading card computer game with my own trading cards and I was wondering if I can load the sprites of all the cards into an array that looks like this: Dim Card(342) as CSprite (CSprite class helps display the sprite on screen) and not have any problems displaying each one on the screen.
View 1 Repliesi am trying to make a game in vb.net and so far have managed to create a sprite which is animated on key event. the only problem is it able to walk off the form out of site. i want to be able to create some sort of boundary so that when sprite position equals greater or smaller then the form width it can no longer walk in that direction, the same goes for the hight. i have tryed this myself like this
[Code]...
Not wanting to hijack 45minutes thread, I thought I might spawn a thread of my own based on his question.
PlausiblyDamp was kind enough to provide some generic code, which I have modified and attached.
I have made a few alterations mostly around removing random objects, as the game in question (Space Invaders) has a set amount of aliens and set starting positions.
As a start I have limited the UpdatedPostion to horizontal movement as the aliens only go side to side unless they hit an edge.[code]...
I'm trying to control him using the arrow keys.
I've already tryed using the case key event handler, but I must be using it the wrong way, because VB 2008 express (what I'm using) produces a bunch of errors("Type expected" as well as it won't work). This is what I've tryed:
Private Sub GameField_KeyDown(ByVal Sender As Object, ByVal E As
System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
Select Case E.KeyCode
[Code]....
I am embarking in the wonderous world of 2D animation and using directx9. I am a complete noob in the world of game engine design etc. I find DX quite usefull and in fact easy to use but in my opinion it's the engine design that makes or breaks the application. There are a massive amount of tutorials on the web explaning how to render a single image to a target but not so much for rendering a lot of sprites.
View 3 RepliesSo I have a ListBox that animates the images in it. Now I think this is impossible, but I need to let the user choose a custom animation speed. Here's the
vb.net
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles animate.Click
Dim cananimate As Boolean = True
[Code]....
[URL]I've found this, but I wanted to know if there is an equivilant for Windows Forms?At the moment changing a panel to .visibility = false just doesn't look at smooth as I'd like... so is there a way?
View 3 Replies[URL] what tool did this person use to analyze the midi file? was it a midi file? how did they turn it into this kind of animation?is it possible to make an application like this in vb.net?
View 2 RepliesI'm putting together a user control that I want to have some animation in (it shows a pump running) and was able to cobble together a nice animated GIF with Photoshop:When I pop it onto a PictureBox in my control, it animates and looks really good.The problem I have, is I want to be able to change the color-palette information in the image to adjust the hue.Thus, when the user chooses "Color.Red", the image is altered so the dark blue in the image becomes Color.Red and the other colors are adjusted accordingly.
The color math I got no problem with, my problem is, how do you change the color information of an animated gif image without ruining it?I can't just convert it to a bitmap or I loose the animation. It has a single, universal color palette so it shouldn't be too hard.Pre-rendered GIFs aren't an option since these pumps pump colored liquid, I want the user to be able to set them on the fly.
How can I make the picturebox animate gif files?
Like, I have an image that has a few frames of animation, but the picturebox only shows the first frame, how can i make it continually loop the gif?
how to graphically show an analog needle moving similar to an old analog meter. I have the picture of the meter I created in paint brush. What I need to know if possible is how do I show the needle moving to a certain value. Basically one end of the needle will be fixed in the middle bottom of the picture and it would move accordingly at a certain angle to my calculations of a certain process.
View 11 RepliesI have a form positioned slightly above the taskbar/system tray in the bottom right corner of my desktop window.It's sort of like a pop-up notification.The notification itself looks great,but there's a button on it which resizes the form up, animating the sizing in increments of 5px whilst keeping it's position relative to the bottom-right corner of the screen.
The problem with this is that it doesn't look very smooth. Adjusting Me.Width resizes from the left so you have to then move the form to the left with Me.Left to compensate. Me. SetBounds just seems to be a wrapper for setting those properties anyway.Is there anything I can do to have the form smoothly (or at least appear to) resize outwards from the left of the form?
Im trying to do a playbook application in vb.net. My problems is I dont know how to animate the pictureboxes. Im supposed to let them move once I play the animate button. Lets say i have a picture box with coordinate 20,30 and i would like it to move on run time to 450,300. how do I do it?
View 10 RepliesI would like to ask some help in my project. Im trying to do a playbook application in vb.net. My problems is I dont know how to animate the pictureboxes. Im supposed to let them move once I play the animate button. Lets say i have a picture box with coordinate 20,30 and i would like it to move on run time to 450,300.
View 1 RepliesIs there a way to physically move a button across a form smoothly, like an animation? I would think you would use a timer,
View 2 RepliesI need to make a picturebox, panel animate from a small 25x 25 to 100x 100 in size but cant seem to set the properties right im using a for loop
-----------buttonclickevent------------
dim myx as new point
for i as integer 1 to 50
myx += 2
[code]....
and i get so many errors?
I have an add-in application running in Outlook that pops up a form to tell the user something is being processed.The add-in is written in vb. net.The information form has an animated gif on it which should animate as the rest of the program is processing however it stops animating.The code is as follows:[code]
View 5 RepliesIve got 2 things i dont know how to do:
1. Make a picturebox get image from a folder (t.ex c:\images) and it has to get the location from a databas. ( i know how to solve the last part )
2. Make a object move to a new location slowly, like an animation.
if you need som code just tell me what part you need.
i use VB.net 2008/2010