Role playing game. A game where the player assumes a character or role, that evolves through story or character development.

learn more… | top users | synonyms

0
votes
1answer
35 views

Firing attack and take_damage events on entity attacking?

I have an Entity class with health, armor, and damage. I want my entities to raise some kind of take_damage and attack events whenever they attack or take damage. Here's my current implementation: ...
2
votes
3answers
66 views

Get algorithm (Chance-to-Hit) from Input and Output

I am currently working on a chance-to-hit formula for an rpg. It consists of the following parts: AttackSkill: The used Attribute of the Attacker (Range: 1-10) AttackBonus: A Modifier from ...
0
votes
2answers
79 views

RPG stats degrading by level

I'm looking for some math to "degrade" stats over level. The idea is that if you have x value for a stat that it's affect will be less when you increase your level, making you have to put more points ...
2
votes
2answers
153 views

Proper Text-RPG Monster Generator [closed]

I'm making a text-based RPG in C++ just for fun, and in a way that I can keep adding to it and hopefully give it graphics one day, and I've got a lot of code for everything. My only problem is that I ...
5
votes
2answers
132 views

Isometric vehicle animation

I am working on a medieval isometric RPG in which the player can ride on horses and in horse drawn carriages. The player's movement is not restricted to the common eight directions; he may move in ...
0
votes
0answers
68 views

player sprite hidden after using a stage (scene2d library)

What i'am doing is showing a tiledmap on the full screen , and it works fine. The character moves perfectly and the camera too. What i want is : Showing some text or imageButton over the map like ...
0
votes
2answers
45 views

How should data about past interactions be stored?

I have been developing a text-based rpg in C++, using sqlite as my database. When it comes to interactions that change the world around the player in some permanent fashion I have been unable to find ...
0
votes
1answer
83 views

Adding movement to a text-based rpg battle

Outline I have the bones of a text-based RPG - the player can progress through a branching storyline and activate some simple events (recieivng/giving/trading items). As I am designing the battle ...
0
votes
0answers
84 views

Isometric staggered multi tile buildings

I'm writing a isometric staggered rpg engine and i am at loss to how to make the buildings placement diamond show up. What I mean is i have tile2screen and screen2tile functions and it works ok. I ...
1
vote
1answer
131 views

RPG - Accuracy Formula (HIT or MISS only)

I am creating the combat system of a simple RPG. The only two factors in this system are damage and accuracy. Accuracy in this game simply means either the attacker HITS or MISSES. There is no ...
0
votes
1answer
53 views

Race OOP structure [closed]

I am on a point that is totaly making troubles to me. In my "Test Program" I have a Character. This character have some stuffs (hp mp, weapon, attackPoint, armor, ...) but also a Race, that can be 4 ...
2
votes
2answers
459 views

Storing Type/Game Data Within A Unity 3D Game Using An Offline Flatfile Database

I've read several documents on how to manage game type data: Would it be better to use XML/JSON/Text or a database to store game content? How to choose how to store data? Im developing an offline ...
0
votes
1answer
36 views

How can I handle the subject of an action disconnecting before the action executes?

Let's assume I have a CEntity class that describes every entity within the game. Each entity class has it's own std::vector of CActions. Each CAction is just an action that the entities can perform, ...
0
votes
1answer
100 views

Logic for enemy chasing main player

I'm making AI to tell a minion to chase and attack the player. I played Magicka, and the minion follows the player in a nice curved manner (left image), rather than what I currently have (right ...
0
votes
2answers
144 views

How can I end my game when the right character statistics get to 0?

I'm creating a text-based RPG game. In my game, a player has five different stats, which might decrease over time as the player does certain things. public static int HP = 100; //CHARACTER ...
0
votes
1answer
178 views

Smooth Npc Movement

I have an Npc in my rpg that moves around based on a Random() variable. My main goal is to have him walk in a random direction a small bit every 2 seconds. I only want him to move about 32 pixels ...
1
vote
1answer
234 views

c++ RPG - Handling buffs / equipment stats [duplicate]

I'm trying to develop a character calculator for a RPG, and it could evolve into a turn based combat / text based RPG. One of my concerns is how to handle the equipment stats / buff system. ...
0
votes
1answer
69 views

2D Hitboxing on an HTML image [duplicate]

I want to make a turn-based game where the player is given "opportunities for attack." An image of the in-game sprite character appears when it's the player's turn to attack. The player can mouseover ...
0
votes
1answer
153 views

How to implement mouse based movement in an RPG? (Java) [duplicate]

I'm making a 2D rpg and I want the character to move with the mouse, ie the user clicks and then the character moves to that location. How do I accomplish this?
1
vote
0answers
195 views

RPG game engine HTML5/javscript [closed]

I am planning to build a 2D RPG game (Zelda style). I am looking for a game engine that has the following features: Map editor to create maps (preferably orthographic grid), with solid objects, ...
3
votes
4answers
261 views

How should loot be distributed across dungeon levels?

I am making a dungeon crawler; as the player character adventures down through increasingly difficult floors of a dungeon, they collect more valuable treasure. What is a good algorithm to determine ...
1
vote
1answer
416 views

Beginner: How do I calculate a vector?

I am trying to wrap my head around some concepts in a side project I'm working on. I'm struggling with how I can calculate a vector based on my character movement logic. Here are the relevant details ...
0
votes
2answers
2k views

How do I make an 8 bit sprite sheet using GIMP or Paint.NET?

I'm looking to create a sprite sheet for an 8 bit, 2D RPG I'm making. All I need to do at the moment is render in some textures. To do this, I want to make an 8x8 sprite sheet. Now, I am really bad at ...
0
votes
2answers
119 views

Handling differing inventory items on use interactions

Hey there my fellow programmers. Looking for a little input into a potentially smelly code problem (I was about to post this on the Code Review SE, let me know if that's the more proper place). After ...
1
vote
1answer
147 views

Is it Possible to create one equipment piece, and handle the manipulation programatically

I have a 2D game made in XNA-4.0. I am brainstorming on how to implement a system of equipment where I can draw one Texture, and rotate/scale it to my character's current animation without haveing to ...
0
votes
1answer
104 views

Weird inheritance hierarchy?

In my RPG, all Food objects should be possible weapons. For instance, I want the player to be able to to try kill bunnies with a cherry or a watermelon. The problem is that the easiest way to do this ...
3
votes
4answers
491 views

Inventory implementation in Java RPG

In my game (simple RPG with Java) there will be an abstract class Creature. Critter, Beast, Vampire... will inherit from Creature. But not ALL classes that inherit from Creature will have an ...
0
votes
0answers
38 views

Advice for implementing gear/effects/abilities [duplicate]

I've been struggling with this for about a month now so I finally turn to the masters for advice. I'm working on a platformer/rpg game and I'm trying to implement gear/effects/abilities as the title ...
-1
votes
4answers
207 views

How/where to generate RPG world?

I'm programming an RPG in java. It's text based, so movement is more or less from "room" to "room." In the case of cities, they will generally be one room, with some sub rooms for important shops and ...
0
votes
4answers
217 views

How to handle a negative coordinate 2d map with a growing map size

I love this procedural generation theory and have been messing around with it. However I'm having trouble wrapping my head around how to store my map data. Usually I store my map data in a 2d array ...
3
votes
3answers
916 views

Procedurally Generated Top View 2D RPG Map Generation

Procedural generation is a fascinating concept and is gaining popularity in the gaming industry. The thought of playing a game that has new content every-time the game is played is very exciting to ...
0
votes
2answers
325 views

Recommended approach for event system in Java

What are the recommended approaches for an event system of a turn-based RPG's battle engine? The system I'm currently working on has a runEvent method that sorts the actions queue based on their ...
2
votes
2answers
347 views

Balancing Attack to Defense in a text based RPG [duplicate]

I understand that there is no correct or incorrect way of doing this, and its all down to a matter of trial and error in terms of perfecting the system. What I am after is some advice or even get ...
0
votes
1answer
308 views

Enemy spawning problem [closed]

I've been trying to get my characters to spawn at random points through out the map. I have a camera which is following my main character (2D RPG Style) around the screen, but I want these "enemies" ...
8
votes
3answers
263 views

How can I author objects with perspective that fit into a tile-based map but span multiple tiles?

I'm creating a tilemap city and trying to figure out the most efficient way to create unique building scenes. The trick is, I need to maintain a sort of 2D, almost-top-down perspective, which is hard ...
2
votes
2answers
200 views

How to limit players to low-level content before they advance, if they can't die

I am making a game with the basic RPG elements: levels, xp, items, currency, stats, spells and monsters. The only different thing is that the player doesn't have hitpoints, you can't die. It's a ...
0
votes
1answer
428 views

HTML5 canvas multiplayer game with node.js and Isogenic engine [closed]

I want to create a multiplayer game using Isogenic engine i understand that this technology uses html5 and canvas for rendering graphics in frontend and node.js for backend. I started working on how ...
1
vote
0answers
168 views

Kicking of the story in an RPG [closed]

I am currently working on a RPG with heavy procedurally content generation. Most of the map and the plot is getting generated procedurally over time. The game also makes use of permadeath. On dying, ...
5
votes
1answer
226 views

How to structure complex global game state?

Assume you're working on an RPG like Fallout and you have all sorts of flags and variables tracking the state of the world. Stuff like: Talked to NPC X Opened chest Y Completed quest 1 Visited some ...
2
votes
2answers
206 views

How to manage Areas/Levels in an RPG?

I'm working on an RPG and I'm trying to figure out how to manage the different levels/areas in the game. Currently I create a new state (source file) for every area, defining its unique aspects. My ...
1
vote
2answers
244 views

Can I have keyboard controls in an MMO and still do movement calcuation in the server?

I'm trying to decide between keyboard and mouse movement controls for a web-based multiplayer. It would be quite resource-intensive to use the WASD-keys and AJAX the server with controls every second. ...
0
votes
2answers
180 views

What design pattern should I employ for validating character movement?

I'm developing a RPG in Java and have a Map class, which will contain all the MapObjects (the Player, Enemies, Walls, etc.): Map.java public class Map { private int width; private int height; ...
3
votes
1answer
333 views

storing user data for rpg

I'm creating a single player Web rpg that will store a decent amount of information about the player, items, map, npcs, etc. I have been developing html5, javascript, php, and the mysql database ...
1
vote
2answers
92 views

How do you account for zoom in a top down viewport?

I've been stumped on this for days so please forgive me if this question is in bad-form. I have a generic top-down RPG structure, and I want to create a zoomable Canvas viewport for it. I've read ...
10
votes
1answer
5k views

How to edit key-value pairs (like a Dictionary) in Unity's inspector?

I have a spell system I am creating, the principle is as follows: Each spell is an autonomous prefab. It contains a script with some properties (base damage, duration...) that can be modified in the ...
0
votes
2answers
272 views

In a multiplayer game, should I store the list of character names on the Player class?

I am writing a multiplayer game that has account system and character creation system like standart MMORPGs. I have a question about name creating issue. I think that I can create a static variable on ...
1
vote
2answers
128 views

Different ways to load/select characters in a RPG game [closed]

I am brand new here, and have been designing a two player card game where from tens of thousands of cards each player selects up to 80 cards DECK, and then fights with those cards. For reference Yu ...
1
vote
1answer
383 views

How can I simulate shadows for a 2D top-down game? [duplicate]

I'm trying to simulate shadows for a 2D top-down RPG (in Python), but I can't think of the best way to do this So far I've tried making copies of the original game entities and turning all opaque ...
0
votes
1answer
67 views

Rotating image around a given point

Im trying to simulate shadows in a 2d RPG, So far I can make the shadows but i cant blit them properly, Im trying to rotate them according to where the "sun" is (just a position) I have looked at ...
8
votes
3answers
410 views

How can I handle versioning changes when saving assets?

I've been working on an RPG now for a while and I use two of different serialization techniques. Enemies, Weapons, items are as saved as XML. Maps and events are saved as "controlled binary" (every ...