How do I delete a specific animation frame

Get help using Construct 2

Post » Tue Jul 21, 2015 7:04 am

Hello everyone,
I was wondering if it's possible to delete a specific animation frame FROM the Event Sheet.
for example:
If(this.happens) then (delete.animationFrame.number.2)
Thank you in advance :)
B
3
Posts: 8
Reputation: 195

Post » Tue Jul 21, 2015 7:07 am

Not sure why you'd need it, but wouldn't skipping the frame have the same visual effect?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Jul 21, 2015 8:47 am

Probably best would be to have a boolean instance variable that when true, goes to the frame after the one you want to skip if the current frame is the one you want to skip. You can't delete frames though, since you'd need to recompile the game every time.
https://www.mediafire.com/?xw6xwprz0fppur0
B
42
S
14
G
3
Posts: 165
Reputation: 5,115

Post » Wed Jul 22, 2015 6:58 am

Thank you for your replies, they helped a lot
B
3
Posts: 8
Reputation: 195

Post » Wed Jul 22, 2015 11:14 am

LittleStain wrote:Not sure why you'd need it, but wouldn't skipping the frame have the same visual effect?


Think it would be useful to be able to delete frames. Imagine that you only need an image a few times being able to remove it, so it doesn't use memory would be a addition I think. In general any functionality that allow you to reduce the amount of memory used would be good.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828


Return to How do I....?

Who is online

Users browsing this forum: MoscowModder, Yahoo [Bot] and 6 guests