XNA texture vertical motion

XNA Getting Texture2D to randomly generate from top to bottom

Page 1 of 1

7 Replies - 2451 Views - Last Post: 30 October 2009 - 04:17 AM Rate Topic: -----

#1 kchenry2003  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 11
  • Joined: 10-October 09

XNA texture vertical motion

Posted 11 October 2009 - 04:55 PM

In XNA , I need code to make my sprite sheet generate randomly and move from the top down. Currently I have the sprite sheet working but in moves diagonally across the screen, but the sprite does not stay in the rectangle and I can't figure out how to get the texture to randomly generate.

This post has been edited by kchenry2003: 11 October 2009 - 04:56 PM

Is This A Good Question/Topic? 0
  • +

Replies To: XNA texture vertical motion

#2 SixOfEleven  Icon User is offline

  • using Caffeine;
  • member icon

Reputation: 945
  • View blog
  • Posts: 6,342
  • Joined: 18-October 08

Re: XNA texture vertical motion

Posted 11 October 2009 - 05:09 PM

First, those XNA utilizes C# this is a Game Programming question so I'm moving this to Game Programming.

Second, Dream In Code would like to see a good faith effort on your part. Could you please post the code you have tried and what is not working the way you expect it to. Please post your code in tags.

:code:
Was This Post Helpful? 0
  • +
  • -

#3 Aeternalis  Icon User is offline

  • D.I.C Regular

Reputation: 28
  • View blog
  • Posts: 291
  • Joined: 13-July 09

Re: XNA texture vertical motion

Posted 12 October 2009 - 09:25 AM

What your talking about is procedural textures a quick google search on that topic gives you this post that might be helpful to you.

Procedural textures in XNA

Good luck
Aet
Was This Post Helpful? 0
  • +
  • -

#4 Hellbroth  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 17
  • View blog
  • Posts: 190
  • Joined: 15-August 09

Re: XNA texture vertical motion

Posted 15 October 2009 - 12:10 PM

View PostAeternalis, on 12 Oct, 2009 - 08:25 AM, said:

What your talking about is procedural textures a quick google search on that topic gives you this post that might be helpful to you.

Procedural textures in XNA

Good luck
Aet



XNA is the worst thing i ever used honest no resources and tutorials nothing complete waste of time....
Was This Post Helpful? 0
  • +
  • -

#5 SixOfEleven  Icon User is offline

  • using Caffeine;
  • member icon

Reputation: 945
  • View blog
  • Posts: 6,342
  • Joined: 18-October 08

Re: XNA texture vertical motion

Posted 15 October 2009 - 07:36 PM

View PostHellbroth, on 15 Oct, 2009 - 01:10 PM, said:

XNA is the worst thing i ever used honest no resources and tutorials nothing complete waste of time....


I don't know where you have looked but there are many resources and tutorials available for XNA online as well as many excellent books. http://creators.xna.com is an excellent site that pops to mind right off the bat for example.

I will admit XNA does still have a few things that need to be worked on but it is an excellent platform for creating games. Just like anything that is relatively new it will have a hard time being accepted.

But let's not get into a "This is a bad language/API/SDK for writing games with type of war." Every programmer is different and learns and understands languages differently.

Games can be, and are, written in just about every language with every API/SDK/Framework.
Was This Post Helpful? 0
  • +
  • -

#6 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 1011
  • View blog
  • Posts: 4,215
  • Joined: 14-February 08

Re: XNA texture vertical motion

Posted 16 October 2009 - 03:23 AM

@OP

Can you explain what you are trying to achieve a little more?
Was This Post Helpful? 0
  • +
  • -

#7 Hellbroth  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 17
  • View blog
  • Posts: 190
  • Joined: 15-August 09

Re: XNA texture vertical motion

Posted 27 October 2009 - 09:56 PM

View Poststayscrisp, on 16 Oct, 2009 - 02:23 AM, said:

@OP

Can you explain what you are trying to achieve a little more?



Probably he want's to make the sprite go from the top to the bottom but i assume in his if statement's he has made two if so they work the same time and the character goes for example down and right at the same time. So he should use if for going down and else if for turning to right. As for the random thing i don't have any clue.

XNA isn't that but in the end it just needs a lot of search in order to begin and find a suitable book.Sorry for my bad attitude it was realy imature from me.

My apologies.

This post has been edited by Hellbroth: 27 October 2009 - 09:58 PM

Was This Post Helpful? 0
  • +
  • -

#8 antshockey  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 45
  • Joined: 16-October 09

Re: XNA texture vertical motion

Posted 30 October 2009 - 04:17 AM

There is a book called Learning XNA 3.0 by Aaron Reed it teaches you exactly what your looking for.
There are many tutorials on XNA, I know this because I have used many of them myself from time to time
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1