Animated sprites!
Animated sprites!
Animated sprites!
Animated sprites!
Animated sprites!
Animated sprites! Animated sprites! Animated sprites! Animated sprites! Animated sprites! Animated sprites! Animated sprites! Animated sprites!
Animated sprites! Animated sprites!
Animated sprites!
Go Back  Xtreme Visual Basic Talk > > > Animated sprites!


Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2011, 09:59 PM
WhatsMyUsername's Avatar
WhatsMyUsername WhatsMyUsername is offline
Regular
 
Join Date: Jan 2011
Location: Currently? Costa Rica
Posts: 52
Default Animated sprites!


Hey, VB.NET game developers! So, what is your common method to make your sprites like animated characters?

Ha, simple as that. I haven't seen much game development on VB.NET actually...
Reply With Quote
  #2  
Old 02-02-2011, 01:49 PM
snarfblam's Avatar
snarfblamAnimated sprites! snarfblam is offline
Senior Contributor

Forum Leader
* Expert *
 
Join Date: Apr 2005
Location: USA
Posts: 896
Default

If you're looking to make anything worthwhile you'll probably want to move away from WinForms. You can use pure GDI+, but the performance would be poor. For games you generally want to look into something like Managed DirectX, XNA, or some other game-oriented graphics library.
__________________
C# _VB.NET _
Reply With Quote
  #3  
Old 02-04-2011, 02:10 PM
itrabarkahc itrabarkahc is offline
Newcomer
 
Join Date: Jan 2011
Posts: 5
Default

One way to do it is to have a timer which causes one sprite to be visible while hiding the other sprite. Have the opposite occur during a keydown event and then an if statement enabling the timer.

I think this is more of an illusion of movement than anything else though.
Reply With Quote
  #4  
Old 02-18-2011, 06:26 AM
Leade's Avatar
Leade Leade is offline
Junior Contributor
 
Join Date: Jul 2005
Location: Wherever i fall over
Posts: 222
Default

Render/draw each frame to a single bitmap file then change the texture coordinates for the to show a particular part of the image only. all you need is one picturebox or sprite, an image file and a timer.

Have a search of the forum i'm pretty sure there is an example on here
__________________
Fact: The best ideas come when your smashed of your face. So drink beer and be merry!!!
Reply With Quote
  #5  
Old 03-23-2011, 04:06 PM
RodJohnRondo RodJohnRondo is offline
Newcomer
 
Join Date: Mar 2011
Posts: 3
Default

Managed D3D works pretty well for drawing.
Sprites: Basic D3D Sprites with rotating 2D Draw Windows based on frame # (simply a property of custom object that rotates at a fixed draw rate).

As someone said earlier, GDI+ is extremely slow. I can get about 13 FPS on an i7-960 with GDI+, but D3D, I got over 50,000 FPS on a test with 100 objects. OpenGL is in the same ballpark, and I think slightly faster?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Animated sprites!
Animated sprites!
Animated sprites! Animated sprites!
Animated sprites!
Animated sprites!
Animated sprites! Animated sprites! Animated sprites! Animated sprites! Animated sprites! Animated sprites! Animated sprites!
Animated sprites!
Animated sprites!
 
Animated sprites!
Animated sprites!
 
-->