Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
c++ x 30
Member Avatar for new2programming

I am making a jump and run game- i want my sprites to collect items that are worth points. I want these items to be randomly generated on my tile map. Does anyone know how i can do this? I am using Visual C++ with SDL

Member Avatar for Aranarth
0
91
Member Avatar for new2programming

I am wanting to add the most simpelist count down timer available for Visual C++ with SDL. Does any one know of a good one i could try and use

Member Avatar for Ancient Dragon
0
64
Member Avatar for new2programming

can anyone tell me why the timer doesn't work in my code? The game runs good but there is no timer? [CODE]//---------------- includes ---------------- #include "global.h" #include "SDL.h" #include <string> #include <cstdlib> #include <windows.h> #include <mmsystem.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <conio.h> #pragma comment(lib, "winmm.lib") using namespace std; …

Member Avatar for daviddoria
0
236
Member Avatar for new2programming

I am trying to use the playsound function i have the code [CODE] PlaySound(L"C:\Documents and Settings\Louisa\My Documents\Visual Studio 2010\Projects\Ninja_Wars\Ninja_Wars\music.wav",NULL,SND_FILENAME|SND_ASYNC | SND_LOOP); Sint32 delta;[/CODE] But when i play the game all i hear is a beeping sound- the one windows has when there is an error or something. Can anyone help …

Member Avatar for nbaztec
0
103
Member Avatar for new2programming

How do i incoporate this countdown timer into my main? ive given it a go but it comes up a black screen.. timer: [CODE]/* clock example: countdown */ #include <stdio.h> #include <time.h> void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; …

Member Avatar for new2programming
0
215
Member Avatar for new2programming

i am trying to code my sprites to collect items which then display a score in the top left of the screen depending on which items they collect, each sprite has their own item and there is an item which deducts score. However i am at a loss as to …

Member Avatar for new2programming
0
58
Member Avatar for new2programming

Hi, I have a game that at the moment is a little like mario- a jump and run. I want to add a timer to my main funtion so that after 60 seconds or so the game ends and goes to a highscore table where you can enter your name …

Member Avatar for mrnutty
0
106
Member Avatar for new2programming

i have been following this tutorial on [URL="http://jnrdev.72dpiarmy.com/"]http://jnrdev.72dpiarmy.com/ [/URL]number 3. I am using SDL with visual C++ i want to add a timer to this code then after the timer has run out i want the game to go to a highscore table where you can enter your name if …

0
52
Member Avatar for new2programming

Hi i am trying to make a jump and run game kinda like mario. i have been following a tutorial so im not completly sure how the playing map is generated i want to add more jumps, ledges and make it bigger basically. I have no idea how to do …

Member Avatar for new2programming
0
140
Member Avatar for new2programming

hi i want to give my sprites some weapons- one a gun and the other a sword but i have no idea what i am doing, can anyone help me do this please? i've included my main.cpp, player.cpp and player.h if it helps.. im using visual c++ and SDL and …

Member Avatar for new2programming
0
145
Member Avatar for new2programming

Hi i have been following this tutorial [url]http://jnrdev.72dpiarmy.com/en/jnrdev3/[/url] in which all the code is supplied if you need to have a look. I am wanting to add another player- how would i go about doing this. I have a player.cpp and a player.h in which i think i need to …

Member Avatar for daviddoria
0
72
Member Avatar for new2programming

How do you create a tile based collision detection map for visual C++? i have the code to implement it i now want to change the layout of the map

Member Avatar for daviddoria
0
71
Member Avatar for new2programming

Hi i am trying to make a jump and run game in Visual C++ using SDL I have been following a tutorial([url]http://jnrdev.72dpiarmy.com/[/url]) which was very good but finished before everything was covered. In a game lik mario, the players will navigate over jumps and onto ledges ect. I am using …

Member Avatar for Hidden_mistakes
0
191
Member Avatar for new2programming

i have been following this tutorial. However when i try and run it i get these errors: I cannot see why i am getting them.. [ICODE]1>------ Build started: Project: Ninja Wars, Configuration: Debug Win32 ------ 1> Playstate.cpp 1>c:\documents and settings\louisa\my documents\visual studio 2010\projects\ninja wars\ninja wars\playstate.cpp(8): error C2259: 'PlayState' : cannot …

Member Avatar for Ketsuekiame
0
153
Member Avatar for new2programming

Hi i am having issues getting a background image displayed in a screen. I have tried a few tutorials but to no advail. If you could help i would be greatful :) I am using Visual C++ with SDL

Member Avatar for daviddoria
0
79
Member Avatar for new2programming

I am using Visual C++ 2010 express edition and i am making classes but when i run i get the error: 1>c:\documents and settings\louisa\my documents\visual studio 2010\projects\ninja wars\ninja wars\game.cpp(71): error C2065: 'm_pScreen' : undeclared identifier [ICODE] In my Game.cpp i have this code void Game::Draw() { Sprite::Draw(m_pScreen, testSprite, 0, 0); …

Member Avatar for griswolf
0
170
Member Avatar for new2programming

Hi i am using Visual c++ with SDL I have been using a tutorial from lazy foo productions but when i go to build my solution my complier says: Cannot open include file: 'SDL.h': No such file or directory

Member Avatar for new2programming
0
902