Some more beginner questions

1.) Can i upload images/art works ive made for the game? lets say for background reasons or for the character design/animation itself?

2.) Can i make an rpg with play canvas?

3.) Do i need to know programming to complete a big game project using playcanvas?

I can answer ‘yes’ to all three questions.

2 Likes

for Q1 and Q2, cool

but for the 3rd one, damn!

since im planning to make an RPG, basically heres what i thought id need, please let me know what i missed.

  • 2d character animation scripts
  • damage calculator scripts
  • enemy and NPC AI animation scripts
  • Dialogue pop up scripts
  • Special effects animation scripts
  • Map scripts

so… i dont know where to begin with making my 2d rpg, read some tutorials, look at some videos, tried some stuff and experimented but i got even more lost!

not giving up though, its just… my head is spinning. like being hit by that damn red shell in mario kart! oh the flashbacks!

If you haven’t seen them yet, below are two tutorials to learn the basics.

1 Like

I once made a final fantasy type experiment. I could perhaps show you that if you are interested.

1 Like

@Albertos ooh! these are super helpful! thanks! imma check it out nowz

@ALUCARD oh damn! not only do you have one of the best video game names ever (im assuming you got this from castlevania lolz) but a fellow rpg gamer! absolutely buddy, thanks!

Dont expect something amazing, its just a movement test. Press space for a larger map.

Junk dont steal | Launch (playcanvas.com)

1 Like

damn thats a neat top down movement demo

1 Like

The hardest part was having the movement be tile based

1 Like

@ALUCARD - yooooo!! this is nice! after walking for a while i was expecting a random battle to pop up! good one buddy!

hmm tile based movement you say, how did you do that?
what script did you use?
did you draw/make that face character?

var Eightway = pc.createScript('eightway');
Eightway.attributes.add("datext", {
type: "entity",
});
Eightway.attributes.add("dacam", {
type: "entity",
});
Eightway.attributes.add("char", {
type: "entity",
});
Eightway.prototype.initialize = function() {
this.entity.setLocalPosition(3400, 0, 696);
this.animstep = 0;
this.iswalkin = "NO";
};
Eightway.prototype.update = function(dt) {
if(this.iswalkin === "NO")
{
if(this.app.keyboard.isPressed(pc.KEY_W))
{
this.iswalkin = "UP";
}
if(this.app.keyboard.isPressed(pc.KEY_S))
{
this.iswalkin = "DOWN";
}
if(this.app.keyboard.isPressed(pc.KEY_A))
{
this.iswalkin = "LEFT";
}
if(this.app.keyboard.isPressed(pc.KEY_D))
{
this.iswalkin = "RIGHT";
}
}
if(this.iswalkin === "UP")
{
this.animstep += 1;
this.entity.translate(0, 0, -1);
}
if(this.iswalkin === "DOWN")
{
this.animstep += 1;
this.entity.translate(0, 0, 1);
}
if(this.iswalkin === "LEFT")
{
this.animstep += 1;
this.entity.translate(-1, 0, 0);
}
if(this.iswalkin === "RIGHT")
{
this.animstep += 1;
this.entity.translate(1, 0, 0);
};
if(this.animstep === 16)
{
this.animstep = 0;
this.iswalkin = "NO";
}
if(this.app.keyboard.isPressed(pc.KEY_SPACE))
{
(this.dacam).setPosition(0, 100, 0);
(this.dacam).camera.orthoHeight = 3072;
(this.char).setLocalScale(409.6, 409.6, 409.6);
}
else
{
(this.dacam).setLocalPosition(0, 50, 0);
(this.dacam).camera.orthoHeight = 120;
(this.char).setLocalScale(16, 16, 16);
}
(this.datext).element.text = this.entity.getPosition();
};

The face is just a giga chad

1 Like

omg please format your code blocks i will literally cry

1 Like

wdym format?

1 Like
print("what i'm doing right now")

Press the button that goes like </> and it will format your code.
Screenshot 2024-10-01 22.43.07

1 Like

yeah that didnt work

1 Like

why did it not work?

1 Like

That button just creates a thing that says “code highlight” and doesnt do anything to the text

1 Like

you have to put the code inside of the quotes it creates

1 Like

I fixed it

2 Likes