Discussions

SmileBASIC Community

Ep17EmPx17

12/07/2016 2:44 AM ·Spoilers

Open Closed

FPS shooting mechanic help.

Can somebody help me make a shooting mechanic? like if im looking at a sprite and i push y the the weapon animation plays and the sprite breaks (animates)

Advertisement

Comment

This post has no comments.

  • Like if i shoot that bottle with that slingshot in the screenshot

    Yeahs0
    Played
  • Maybe you could use SPCOL with the cross-hair sprite? I can't really help with SPCOL. I'm rather inexperienced with sprite collision. Sorry!

    Yeahs2
    Played
  • Adding on to what Oscar said. If the crossair is a sprite, then you could probably spcol the crossair and the bottle then type: SPCOL 0 'Whatever management number your crossair sprite is SPCOL 1 'Whatever management number your bottle sprite is IF SPHITSP(0,1) THEN IF BUTTON() AND #B THEN SPHIDE 1 ENDIF

    Yeahs1
    Played
  • Ok thanks.

    Yeahs0
    Played
  • how is it coming?

    Yeahs0
    Played
  • Oh i forgot about this, it didn't work i have to experiment more and i was doing other projects.

    Yeahs1
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2N-NW3-RL8T

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: