Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Lacroiix Lancaster

16
Posts
4
Topics
10
Following
A member registered Mar 11, 2016

Recent community posts

Can someone show me an example? I could not to make the "right way", the block are not in the same Tile position.

Obs: I'm using the Ninja Tileset from superpowers. Tile positions are: 1040,1041,1068,1069, how I make a property with this?

Can anyone help me with some tutorial to cast bullets (Spells, Heals, etc.) from my Player?

I have no idea how to do it x), thanks in advance

Maybe all you have to do is put a ELSE conditional to set Zero into X axis when no button is pressed. So, when the key left up, the actor stops.

//Handle rightward movement
 else if(Sup.Input.isKeyDown("D")){
 new_x_speed = this.speed;
 } else {
   // Set here, inside the else.
   new_x_speed = 0;
 }

I guess you should to make something like this:

//{Wall Script}

//Verify the collision
let collide = Sup.ArcadePhysics2D.collides(
           Sup.getActor('Car').arcadeBody2D, Sup.getActor('Wall').arcadeBody2D);

if (collide) {
console.log('Bateu!');
//Call Animation Sup.getActor('Car').spriteRenderer.setAnimation('Collision');
} else {
console.log('Driver Safe!');
}

I put my collision's scripts in the static actors (e.g. wall) when they start the event (collision), I just pick the actor in the scene that "hit" the my static actor and animate. Hope it helps :)

After the explanation from scriptMapBoy I did understand what uheartbeast want says. The answer was in Z axis all time. But my map had 5 in Z axis, so my PlayerActor had 2 or 3, so it never appear x).

Thank you all. <3

Ok, thanks ;)

Not work ):

(1 edit)

I guess same thing. How I change the value of z axis? (is in "position" propriety?)

Runs like a charm. Thank you scriptBoy! ;) This saves lots of time (and files!) xD

(2 edits)

Hi, me again! x)

Guys, I create a map, but when I import to scene, he cover the other actors o,o. Why this occurs? How to solve?

[ Screenshot ]

I was afraid you'd say that hahaha. Thanks by reply!

It works! Thanks!

(1 edit)

So, I have one script for two Scenes (SceneA, SceneB). I want to do something like this:

if (Sup.getScene() === 'SceneA') 
    { //doSomething } 
else if (Sup.getScene() === 'SceneB') 
    { //doOtherStuff } 
else 
    { //doNothing }

The point is: I want to get the current scene running. Is it Possible?

@Edit

I tried this: Scene Detection by LukeLanFaust answer, but my Log was: >> activeScene content: undefined

Link doesn't work

So, I have one script for two Scenes (SceneA, SceneB). I want to do something like this:

if(Sup.getScene() === 'SceneA') {
//doSomething } else if (Sup.getScene() === 'SceneB') { //doOtherStuff } else { //doNothing }

The point is: I want to get the current scene running. Is it Possible?

I cannot open the game in ubuntu 15.04. Need run some command before?