Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nikopol

Pages: 1 2
1
Ask a Question / Re: Stop a 'Do every x seconds' loop ?
« on: May 12, 2017, 06:32:18 am »
Allright ! Thanks for the 2 solutions ! I will do as you say, create a second custom event .

Btw, your channel is awesome ! You helped me a lot with all your vids, thanks.

2
Ask a Question / Stop a 'Do every x seconds' loop ?
« on: May 12, 2017, 05:54:31 am »
Hey all,

I tried stopping a 'do every ... seconds' loop by using the 'stop' command, but it doesn't seem to work.
Here is a screenshot of my behaviour.

Perhaps it only stop the 'if' block ?

3
Ask a Question / Re: Collision viewer?
« on: March 30, 2017, 02:31:27 am »
I'm not sure, but this could be because you manually made your tiles' collision shapes, and didn't make them right.

4
Found the solution !

Had to use in the 'when drawing' event : "switch screen to space".

5
Actually I found out that the 'X of actor' command stil works in every situation.

But the 'draw rect' and 'draw text' won't draw or at least won't show any shape or text when actor set to sensor or 'cannot move' or 'cannot be pushed' !

Why?

6
Ask a Question / Re: Collision viewer?
« on: March 30, 2017, 12:34:00 am »
Not sure if you can do this while on the scene designer, but I use the command 'Enable debug drawing' (found under Flow-->Debug)

Just add it to your scene updating event, and test your scene, you should be able to see all the collision shapes.

7
Hey everyone,

Making an NPC actor, that would just stand on tiles, and when the player enters in collision with him ( the npc being a sensor ), a behaviour would get the coordinates of the npc and create a dialogue box using these coords.

However, I found out that whenever the actor is set to 'Cannot move' or 'Cannot be pushed', the behaviour is not working.

Furthermore, even if he's set to normal but also set as a sensor, the behaviour stops working.

Why is it I can only get it's coords when he is set to normal and not a sensor ?

8
Ask a Question / Re: Keep attributes after killing actor ?
« on: March 22, 2017, 03:26:48 am »
Never mind,  had to use Game Attributes

9
Ask a Question / [Solved] Keep attributes after killing actor ?
« on: March 22, 2017, 03:03:37 am »
Hello,

Every time my actor is killed (by enemy, by changing scene) the attributes stored in one of his behaviour reset. (items in inventory)

How can I store them before he dies and reassign them to the actor when he respawns ?

Maybe by having a behaviour that is always running ?

10
Awesome, solved my problem !

Didn't know we could interact with friction from outside the 'physics' tab

11
Hey,

So the problem is pretty much explained in the title. How can I do this without increasing friction ? (since it would make it harder to walk up slopes)

12
Ask a Question / Re: Can't draw without crashing game
« on: March 20, 2017, 02:56:15 am »
Here is how I think everything is drawn :

Firstly a scene with only one empty layer is created. After one second, this scene changes to a second one and also creates an Actor on the latter. (using "create hero at (x:90 y:300) at Front in the next scene")

The second scene has two background layers positioned 'under' all the layers in the layer list , and 9 other layers.

So the actor appearing in the second scene Is behind all layers except the two background layer, and the first layer called 'Floor + InvisibleWal' ( see layers screenshot in attachment ).

Using "create actor in Front" makes the 'open inventory' behaviour (see attachment) work, but places my actor behind almost all the layers. And if I "create actor in middle", the 'open Inventory' behaviour makes all the layers, except backgrounds, disappear, but the actor Is in front of every layers

What's happening ?

13
Ask a Question / Re: Can't draw without crashing game
« on: March 19, 2017, 04:42:00 pm »
ALRIGHT !!!

I changed the :  "create hero at (x:90 y:300) at Middle in the next scene"

to :   "create hero at (x:90 y:300) at Front in the next scene"

and now the behaviour works. However, my actor is behind my layers... How does all this Front/Middle/Back work ?

14
Ask a Question / Re: Can't draw without crashing game
« on: March 19, 2017, 04:36:26 pm »
I think I found the source of the problem :

When I test my game, it starts with a blank scene that I use to start some music. ( see scene events in attachments )

When I tried to test the 'openInventory' behaviour while not launching the game but only testing a specific scene, without passing by this blank scene, everything worked.

Do you have any idea what's happening ?

15
Ask a Question / Re: Can't draw without crashing game
« on: March 19, 2017, 03:42:59 pm »
help  :'(

Pages: 1 2