Log In  
Log In  

@MEMalguy

Follow
Follow

Cart [#52012#] | 2018-04-25 | License: CC4-BY-NC-SA | Embed
4

P#51017 2018-03-30 01:01 ( Edited 2018-05-11 15:37)

I am looking to hopefully animate the title of my title screen. Are there any good tutorials that you recommend? I really love the sparkles in TRASEVOL_DOG's Mushroom Délicieux, as well as how the title moves up and down. I attempted to isolate the code for it, but I can't seem to figure all of it out. I tried referencing the 'hello' demo to animate the motion of my title too. :-/ Any help is appreciated.

P#49505 2018-02-22 12:38 ( Edited 2018-03-01 20:31)

Coding is in an entirely different realm than what I am used to. That being said, attempting to create a pickup item has been a bit of a nuisance. I am trying to avoid collisions and utilize tiles/sprites instead. With what I currently have, how can I impliment mget/mset to make an item disappear or even be replaced with another sprite when the player interacts with it? I have tried to mimic the 'solid_tile' format used with each btn and tried to figure out @morningtoast's method...

Cart [#49475#] | 2018-02-21 | License: CC4-BY-NC-SA | Embed

P#49477 2018-02-21 10:54 ( Edited 2018-02-21 15:54)

I am using a sprite tile as a pickup item. When the player interacts with it, I need it to just disappear. How can I achieve this? I was imagining something along this line:

if(pickup_tile(player.x-1,player.y) == false) then
pal(0)
end
P#48781 2018-01-31 09:39 ( Edited 2018-02-21 15:44)

I have been using tiles as a placeholder, as I have not yet learned how to work with collisions. At the moment, I am trying to figure out how to replace sprite 34 with sprite 35 when the player interacts with it. Any help is appreciated.

Cart [#46344#] | 2017-11-16 | License: CC4-BY-NC-SA | Embed

P#46346 2017-11-15 19:26 ( Edited 2017-11-16 00:26)

Cart [#49475#] | 2018-02-21 | License: CC4-BY-NC-SA | Embed

Cart [#46349#] | 2017-11-16 | License: CC4-BY-NC-SA | Embed

Cart [#46344#] | 2017-11-16 | License: CC4-BY-NC-SA | Embed

P#46345 2017-11-15 19:18 ( Edited 2018-02-21 15:39)

I am a baby learning to crawl when it comes to PICO-8. So far I have created a pickup by using a tile flag. I figure I need to add an if statement to my gameupdate(), but I can't seem to figure out how to get the sprite to disappear when the player touches it. I was also hoping to add the death sparkle particle used in Jelpi. Does anybody have the isolated code? Are there any good tutorials that can show me how to create proper collision boxes based on the sprite and not the entire tile? Thank you!

Cart [#45269#] | 2017-10-16 | License: CC4-BY-NC-SA | Embed

P#45468 2017-10-25 20:36 ( Edited 2017-10-26 00:36)

I am trying to figure out how to isolate the randomized butterfly particle that Happy Little Island uses. It is activated when the player interacts with a flagged tile. In my prototype, the flagged tile is the grass (spr(32)) and the butterfly/particle is spr(34,35). I am clearly missing something, but I can't seem to problem-solve my way through it.

Cart [#45269#] | 2017-10-16 | License: CC4-BY-NC-SA | Embed

P#45467 2017-10-25 15:47 ( Edited 2017-10-27 14:46)

Hi. I am hoping to add animated water to my game by just using a few tiles that loop. I can't seem to find any good resources for animated background elements though. I mostly just find animations for characters or interactive objects.

EDIT: I greatly appreciate all of these responses. I guess what I'm asking is how do I animate an object? Most of what I find is how to animate a player so it's generally based off of "if btn(0) then..." But I just want a standalone animated object that's constantly in loop throughout the game.

P#45316 2017-10-18 14:41 ( Edited 2017-10-27 14:52)

I implemented code for wall detection and now the player moves diagonally across the y-axis, rather than just straight up and down. What am I missing?

Cart [#45113#] | 2017-10-11 | License: CC4-BY-NC-SA | Embed

P#45114 2017-10-11 11:17 ( Edited 2017-10-11 15:57)

I have been tinkering with Zep's "Wall Collision Example", but I can't seem to get it to work. How can I make boundaries/walls (represented by the four pixels arranged in a square)?

UPDATE: If you are brand spankin' new to PICO-8 and need a tutorial to build walls and boundaries around your map, I highly recommend Uncle Matt on Youtube. ;-) Start here.

Cart [#45064#] | 2017-10-10 | License: CC4-BY-NC-SA | Embed

P#45063 2017-10-10 14:20 ( Edited 2017-10-11 02:03)

Okay. I have created randomly generated flashes. However, how can I make the flashes themselves into a randomly generated event? (I am trying to achieve a thunderstorm effect that roles through at random points in the gameplay.)

flash = false
timer = 0

function _draw()
                cls()
                if flash then
                        rectfill (0,0,127,127,7)
end

function _update()

                timer -= 1

                if timer <= 0 then
                            timer = 120
                end 
                if  flr(rnd(100)) <= 10 then
                            flash = true
                else
                            flash = false
                end
        end
end
P#44974 2017-10-07 22:47 ( Edited 2017-10-09 15:56)

I am a designer and artist, not a programmer. This would be a casual gig and a symbiotic relationship. The concept I have in mind is a relaxed sandbox game about a honey bee. Simple enough. Let me know if you are up to the fun.

P#44916 2017-10-04 19:17 ( Edited 2017-10-16 16:17)

I am attempting to make the screen flash and shake. However, I would like it to be randomly generated. I vaguely researched the use of srand/rnd, but I ultimately do not know how to implement the proper code into what I currently have.

Warning: I have no idea what I'm doing.

player = {}
player.x = 60
player.y = 60
player.sprite = 0
player.speed = 1
player.moving = false
player.timer = 1
music(0)
cam_x = 0 
cam_y = 0
fliph = false
flipv = false
shake = 0

function _rand

function _draw()
        cls()
        camera (cam_x,cam_y)
        cam_x = player.x-60
        cam_y = player.y-60
        map(0,0,0,0,16*8,16*2,0)
        --map(0,0,0,0,16,8)
        --map(0,0,0,64,16,8)
        spr (player.sprite, player.x, player.y,1,1,player.fliph,player.flipv)
end

function movex()

        player.moving = true
        player.sprite += 1
        if player.sprite > 3 then
                    player.sprite = 2
        end
end

function movey()
        player.moving = true
        player.sprite += 1
        if player.sprite > 5 then
                    player.sprite = 4
        end
end

function _update()
        player.moving = false

        if btn(0) then
                player.x -= player.speed
                movex()
                player.fliph = true
        elseif btn(1) then
                player.x += player.speed
                movex()
                player.fliph = false
        elseif btn(2) then
                player.y -= player.speed
                movey()
                player.flipv = true
        elseif btn(3) then
                player.y += player.speed
                movey()
                player.flipv = false
        end
            --  if not player.moving then
                --player.sprite = 0
    --  end
                if not player.moving then
                player.timer = player.timer+1
        end
                if player.timer >=30 then
                player.sprite = 1
        end
                if player.timer >=60 then
                player.sprite = 0
                player.timer = 0
        end
                if player.moving then
                player.timer = 0 
        end
end
P#44888 2017-10-03 15:47 ( Edited 2017-10-14 03:05)

Cart [#45635#] | 2017-10-30 | License: CC4-BY-NC-SA | Embed

Cart [#45014#] | 2017-10-09 | License: CC4-BY-NC-SA | Embed

P#44772 2017-09-30 13:05 ( Edited 2017-10-30 18:23)

Okay. So, I am brand spankin' new to coding. I am not quite sure what the proper lingo is.

I am attempting to create a sandbox game, but I have no idea how to make it so that when players reach the edge of the playable screen, they can then continue on into a new screen. "Space Delivery!" and "Carmina's World" accomplishes this.

Please let me know if I am not articulating this properly. Any help is appreciated.

This is all of the code I currently have:

player = {}
player.x = 60
player.y = 60
player.sprite = 0
player.speed = 1
player.moving = false
player.timer = 1 

function movex()

        player.moving = true
        player.sprite += 1
        if player.sprite > 2 then
                    player.sprite = 0
        end
end

function movey()
        player.moving = true
        player.sprite += 1
        if player.sprite > 18 then
                    player.sprite = 16
        end
end

function _update()
        player.moving = false

        if btn(0) then
                player.x -= player.speed
                movex()
        elseif btn(1) then
                player.x += player.speed
                movex()
        elseif btn(2) then
                player.y -= player.speed
                movey()
        elseif btn(3) then
                player.y += player.speed
                movey()
        end
                if not player.moving then
                player.sprite = 16
        end
                if not player.moving then
                player.timer = player.timer+1
        end
                if player.timer >=30 then
                player.sprite = 3
        end
                if player.timer >=60 then
                player.sprite = 16
                player.timer = 0
        end
                if player.moving then
                player.timer = 0 
        end
end

function _draw()
        map(0,0,0,0,16,8)
        map(0,0,0,64,16,8)
        spr (player.sprite, player.x, player.y)
end
P#44703 2017-09-27 20:38 ( Edited 2017-09-28 00:43)

Okay. So, I am brand spankin' new to coding. I am not quite sure what the proper lingo is.

I am attempting to create a sandbox game, but I have no idea how to make it so that when players reach the edge of the playable screen, they can then continue on into a new screen. "Space Delivery!" and "Carmina's World" accomplishes this.

Please let me know if I am not articulating this properly. Any help is appreciated.

P#44702 2017-09-27 20:38 ( Edited 2017-09-29 00:19)

How does one make a player constantly animated?

Context: I am attempting to make a sandbox game about a honeybee. I need the honeybee's wings to always be in motion.

P#43967 2017-09-06 14:34 ( Edited 2017-09-08 12:24)

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-12-17 19:42 | 0.136s | 4194k | Q:131