it would be help me out alot if some one could take the time to teach me know to create 2d game from start to end.
i want to create this game in java or c++ but it has to be 2d side scroller by using 2d array as map tiles, kind of like mario
How about reading a tutorial from the web,
In Java here's a good tutorial (though a bit deprecated) which teaches how to make platform based games like mario you can also download and edit the source code too
this covers the basic steps from first to last and you can reread the chapters
the mario game tutorial starts at lesson 7 though it's good to read the previous lessons