RetroEmu: Questions about Tables, Tables, Sprites and more... - RetroEmu

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Questions about Tables, Tables, Sprites and more... Going to start my first 'big' project, but need some info...

#1 User is offline   0m3GA ARS3NAL Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 16-December 09

Posted 06 June 2010 - 11:48 PM

Hiya all, I'm not exactly a BIG coder or anything, but I'm not really that new to coding and things like that, so I understand basic coding concepts...

I just have a few questions.

but first an explanation on what I would like to achieve.
I'm attempting to make a sidescrolling platformer, much like Mario, but will soon be revealed to be MUCH different.

I am looking for help on how I can:
Make the level scroll, mind you the levels are about Mario Length, if not more.
Sprite Animation, still having trouble with that...
Enemies moving, relative to the background too. (So if I am walking forward and the screen is scrolling, enemies look sped up accordingly...)

Having the Player Sprite Animate when walking but NOT while moving.

Finally, a big one

I'm having an element in my game where pressing switches change level and enemy properties, so if I were to use a table for all that would it work?
(Like one table for defining enemies, one for level properties, etc etc.)
And what's more, having a table, in a table, to define the sprite for an enemy, and another table in the table to define enemy speed, things like that?

Even going so far as to be 4 tables in?
Sorry for the bombardment of questions, but google has failed me a multitude of times.
0

#2 User is offline   cmbeke Icon

  • Administrator
  • Icon
  • Group: Administrators
  • Posts: 272
  • Joined: 18-October 09
  • LocationIowa

Posted 08 June 2010 - 01:23 AM

For a tile engine check out this tutorial, scrolling would be just limiting what you saw on screen. I actually just finished up an animation function, right here. Tables with in tables are fine; tables will work with everything and make your code not as cluttered.

do not trust anything i say i am certifiably mentaly unstable - me...wait a minute
Posted Image
Posted Image
do you dare click?

0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users