lionz's Forum Posts

  • Well unless I've missed something, loading the save game will load it at the point you saved so the variable will be 60, doesn't matter what you do after the save if you are loading it later.

  • When you said load it do you mean load the save game? Other than this it's hard to work out unless we see the event sheets. Even if layout B is only linked to the first event sheet it should still add 1 every second I guess.

  • Regenerate region?

  • Then you just create the events like you mentioned in the original post, if animation attack1 has finished, do something, what's the problem?

  • For this you can use &choose(1,2,3)

  • "What I want is for the score to continue where it left off when my character moves, but add to the score when I stop." ?

  • File a bug if you think it is a bug but I would check it's on the expected layer.

  • Sorry not explained well enough, could you rephrase? Where is the player?

  • You do not have permission to view this post

  • Ah okay, you can increment it add 1 to the animation frame, set it to self.animationframe+1. Then have another event if animation frame greater than 3, set to 0, this will loop it.

  • It's continuing what you already have there,

    if sprite.frame=1, set opacity 70 etc

  • Your points is a global variable? You can set it to 0

  • The use of families looks like it is the reason it's not working, you are not specifying which array to grab the data from when you use a family. If you want to do it per layout then you should run that logic through the specific array that has the data.

    The way to do it with one layout is to keep refilling the one array with the data from the correct level file. So what you're doing for level 1, you call it again from level 2. The way to change the data in the array could be to set a global variable for level number then restart the layout, if level=1 then grab from json1 and if level = 2 then from json2 etc.

  • Hiya, if you are using this method then I don't think you need multiple layouts? You should be able to use one layout and load the different files into the one array on request. The problem you encountered, maybe the event sheets are not linked to the layouts correctly? This is a common cause of not running the events as expected. Also I see your event is running an array called Rooms but you load the data into arrays called RG so that's confusing.

  • I took care of this thing with a variable for left and right. When A is down set leftvar to 1, when D is down set rightvar to 1. On A and D released set those variables to 0. Then under A is down you add a condition that rightvar must be 0 and for D is down that leftvar must be 0, this means you can't press A if D is down and you can't press D if A is down.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads