Log In  
Follow
MEMalguy
SHOW MORE

Cart #catjack-0 | 2019-04-20 | Code ▽ | Embed ▽ | No License
1

CatJack! The one and only black cat blackjack game. (Concept art.) I may or may not try and learn how to properly code this. If anybody would like to collaborate on this, I'm all in.

P#63709 2019-04-20 00:35

SHOW MORE

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

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

SHOW MORE

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)

SHOW MORE

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 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

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)

SHOW MORE

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 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

Cart #49475 | 2018-02-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #46349 | 2017-11-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #46344 | 2017-11-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

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!

by
Cart #45269 | 2017-10-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

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.

by
Cart #45269 | 2017-10-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

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)

SHOW MORE

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?

by
Cart #45113 | 2017-10-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

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.

by
Cart #45064 | 2017-10-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

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)

SHOW MORE

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)

SHOW MORE

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)

SHOW MORE

Cart #45635 | 2017-10-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #45014 | 2017-10-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

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

SHOW MORE

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)

SHOW MORE

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)

SHOW MORE

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)

Follow Lexaloffle:          
Generated 2024-03-19 03:18:15 | 0.085s | Q:50