The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
24 views

Using an SDL_Renderer within a texture wrapper class in SDL2

I have a CTexture class which needs a renderer to create and show textures. I don't know the scope I should put the renderer in. I´ve got it to work as a global variable, but I don't know if it´s a ...
0
votes
1answer
65 views

Animations not working using scene2d and actor class in LibGDX

I have a problem making a simple animation using the Actor class. public class fondoanima extends Actor { protected TextureRegion currentFrame; protected TextureRegion[] walkFrames; protected ...
-1
votes
1answer
62 views

What properties should be private, public, and protected? [closed]

I'm currently trying to write a base player class, and I'm not exactly sure what I should make private, and what I should make public. I know that as a programmer, I need to keep as many variables as ...
1
vote
1answer
33 views

Bukkit Scheduler not in main Class

I want to make an Repeating Task whisch isn't in the main Class. ("Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {},20,20);") But it says that it can't resolve the method.
0
votes
2answers
67 views

Constructor in derived class from MonoBehavior [closed]

So i've got a Part abstract class which inherit from Monobehavior public abstract class Part:MonoBehaviour​ And then I've a class frame which inherit from Part class public class Frame: Part { ...
1
vote
1answer
46 views

Can't access properties of a class

Sorry for the bad title, but I couldn't think of a way to word my problem for a title. So I have this script, with two classes: using UnityEngine; using System.Collections; public class GameItem { ...
0
votes
2answers
147 views

Java RPG class implementation (design pattern ?)

For my school project I'm making a little NFC based game on Android. The concept is simple, on each phone you create a character and you can fight with other people through NFC. The character will ...
0
votes
0answers
16 views

In Processing, why does this call to image() cause an error?

Here is my code: Hero robinHood; Arrow arrow1; PImage bg; PImage left, right, still; float positionX = 383; float positionY = 455; void setup() { size(800,600); bg = loadImage("background1.png"); ...
0
votes
2answers
107 views

What if I extend a uclass without UClass() in Unreal Engine?

What happens if I extend a uclass (or UObject) without the UClass() macro? Will it still be a UClass() and managed by the garbage collector? I'm just curious. Update I managed to extend ...
2
votes
1answer
352 views

Having trouble creating multiple sprites from one class

So I am trying to make more than one sprite using a single class but I cannot seem to get the sprites to be drawn at all or drawn in different places (they are all just on top of one another). In my ...
0
votes
1answer
73 views

Unity: Assign GameObject to Class that hasn't been yet instantiated

I'm creating a game where I have an Entity class that contains basic entity info (pos, health,..) and some functions. Enemies and Player later on inherit from this class. Public class Entity { ...
1
vote
1answer
67 views

AS3/Flash Develop - Radial Gravity (character on planet simulation)

I am trying to create a program where a character shape will be constantly drawn towards the centre of a planet shape. I have taken on previous advice into using physics equations to generate the ...
-3
votes
1answer
34 views

Manager classes benefits [closed]

I am wondering if there are any other advantages to using new classes for managers, eg game state managers, other than readability/organization.
-1
votes
1answer
260 views

UE4: Subclass problem: cannot access private member declared in parent class?

I get the following error: [...]\ClassB.cpp:7: erreur : C2248: 'UClassA::UClassA' : cannot access private member declared in class 'UClassA' [...]\ClassA.h:12: see declaration of 'AClassA::...
3
votes
2answers
221 views

Adding two classes with arithmetic math [closed]

I'm trying to figure out how to add two classes together with a simple arithmetic addition The class i've written is a Vector3 class it looks like this public class Vector3 { public float x, y, z; ...