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 - letmethink

Pages: 1 2 3 ... 158
1
Ask a Question / Re: Turning Around To Look at the Player
« on: September 08, 2018, 04:32:28 am »
What you could do is choose whether to look left/right or up/down based on how far the player is from each of these axis. Create a Boolean attribute and call it "horizontal* or something like that then in the when updating do this code.

Set horizontal to <(absolute value of ((x of self)-(Alex x)))>(absolute value of ((y of self)-(Alex y))>

If it's true then face horizontally and otherwise face vertically

2
Ask a Question / Re: Creating an 'Ad-free' version of the game
« on: September 07, 2018, 04:13:06 am »
Should it be an and statement rather than an or?

3
Ask a Question / Re: boss spawns enemies, but they can't attack player
« on: September 07, 2018, 04:09:12 am »
Additionally there are blocks that allow you to set attributes in behaviors for other actors during runtime

4
Ask a Question / Re: Camera Buttons not quite working (with images)
« on: September 07, 2018, 04:07:17 am »
Okay so your problem here is with the setting the x and y speed of the camera to 0. The "when updated" events trigger in the order of creation for the actors.

Imagine your mouse is over the first actor you created. This sets the x and the y speed to the correct value. However, the next actor comes around and looks and sees the mouse isn't over itselylf so sets the x and the y speed of the camera to 0. I guess one way to fix this would be to only set the x and y speed of the camera to 0 if the mouse isn't over any of the actors

5
I think this is fixed in the latest private releases

6
Ask a Question / Re: Export/Import a game?
« on: August 05, 2018, 03:31:27 am »
In order to export a game you need to open it. Your export button is probably grey because you have no game open.

7
Put this in a code block in the first scene of your game in a when created event:

Code: [Select]
untyped __js__('var keys = {};
window.addEventListener("keydown",
    function(e){
        keys[e.keyCode] = true;
        switch(e.keyCode){
            case 37: case 39: case 38:  case 40: // Arrow keys
            case 32: e.preventDefault(); break; // Space
            default: break; // do not block other keys
        }
    },
false);
window.addEventListener("keyup",
    function(e){
        keys[e.keyCode] = false;
    },
false);');

8
I don't think you show the behaviors you've attached to your player actor.

9
Ask a Question / Re: Bullets do not collide with the Tiles
« on: June 30, 2018, 12:18:56 am »
If your tile is set to "cannot be pushed" it won't collide with tiles. You may also need to enable continuous collision if you haven't already.

10
Ask a Question / Re: How do you turn off physics?
« on: June 24, 2018, 02:02:38 am »
Also you can go into collisions and delete the collision boxes for the animations

11
Ask a Question / Re: How to temporarily disable collision?
« on: June 17, 2018, 03:49:05 pm »
What you could do is use these blocks to change the group of the collision shapes to something the bullets won't collide with and change them back after a certain time
Wait... this works even if you don't create the collisions with code?  And use the ones we draw in stencyl?
I think so...

12
Ask a Question / Re: How to temporarily disable collision?
« on: June 17, 2018, 02:26:30 pm »
What you could do is use these blocks to change the group of the collision shapes to something the bullets won't collide with and change them back after a certain time

13
Ask a Question / Re: Scene Transition Glitch
« on: April 16, 2018, 01:26:27 pm »
If you use "y of 1st actor" rather than the game attribute y does the glitch still occur?

14
Ask a Question / Re: Scene Transition Glitch
« on: April 14, 2018, 12:31:23 am »
Is the y game attribute being set or changed anywhere else?

15
Ask a Question / Re: [BUG] Bug with make collision shape a sensor BUG
« on: April 14, 2018, 12:28:12 am »
I think this might be a stencyl issue of recycling actors incorrectly

Pages: 1 2 3 ... 158